/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * NewJFrame.java
 *
 * Created on 9-apr-2009, 22:14:30
 */

package Gui;

import iCalendar.JCalendarDemo;
import importexport.Export;
import importexport.Import;

import java.awt.CardLayout;
import java.awt.Component;
import java.awt.Font;
import java.awt.GraphicsEnvironment;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.File;
import java.util.Calendar;
import java.util.GregorianCalendar;
import java.util.Vector;
import java.util.logging.Level;
import java.util.logging.Logger;

import javax.swing.ButtonGroup;
import javax.swing.DefaultListModel;
import javax.swing.JFileChooser;
import javax.swing.JFrame;
import javax.swing.JList;
import javax.swing.JMenuItem;
import javax.swing.JViewport;
import javax.swing.ListModel;
import javax.swing.UIManager;
import javax.swing.UnsupportedLookAndFeelException;
import javax.swing.event.ListSelectionEvent;
import javax.swing.event.ListSelectionListener;

import main.Main;
import objects.Course;
import objects.Task;
import database.Database;
import database.dateTime.DBDateTime;
import dynamicFolders.SmartFolderPanel;

/**
 * 
 * @author Admin
 */
public class NewJFrame extends javax.swing.JFrame {
	CardLayout cl;
	private final Database db = new Database("test.db3");
	private boolean remove = false;
	private String gEmail = "";
	private String gOldType = "";
	private int dashboardHeight = 0;

	/** Creates new form NewJFrame */
	public NewJFrame() throws ClassNotFoundException, InstantiationException,
			IllegalAccessException, UnsupportedLookAndFeelException, Exception {
		try {
			GraphicsEnvironment e = GraphicsEnvironment
					.getLocalGraphicsEnvironment();
			dashboardHeight = e.getMaximumWindowBounds().height - 70;
			// Main.admin = true;
			initComponents();

			this.setMaximizedBounds(e.getMaximumWindowBounds());
			this
					.setExtendedState(this.getExtendedState()
							| this.MAXIMIZED_BOTH);
			this.setLocationRelativeTo(null);

			this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
			disableClose();

			// this.pack();
			// this.repaint();

			initCard();
			initLessen();
			/*
			 * this.setEnabled(false); inlogVenster.pack();
			 * inlogVenster.setLocationRelativeTo(null);
			 * inlogVenster.setVisible(true);
			 */

		} catch (Exception e) {

			jLabel66.setText(e.getMessage());
			eventErrorVenster.pack();
			eventErrorVenster.setLocationRelativeTo(null);
			eventErrorVenster.setVisible(true);

		}
	}

	private void disableClose() {

		try {

			for (int i = 0; i < UIManager.getInstalledLookAndFeels().length; i++) {
				taskVenster
						.setDefaultCloseOperation(taskVenster.DO_NOTHING_ON_CLOSE);
				vakVenster
						.setDefaultCloseOperation(vakVenster.DO_NOTHING_ON_CLOSE);
				contactVenster
						.setDefaultCloseOperation(contactVenster.DO_NOTHING_ON_CLOSE);
				gebeurtenisVenster
						.setDefaultCloseOperation(gebeurtenisVenster.DO_NOTHING_ON_CLOSE);
				bestandsVenster
						.setDefaultCloseOperation(bestandsVenster.DO_NOTHING_ON_CLOSE);
				importVenster
						.setDefaultCloseOperation(importVenster.DO_NOTHING_ON_CLOSE);
				aboutVenster
						.setDefaultCloseOperation(aboutVenster.DO_NOTHING_ON_CLOSE);
				exportVenster
						.setDefaultCloseOperation(exportVenster.DO_NOTHING_ON_CLOSE);

			}
		} catch (Exception e) {

			jLabel66.setText(e.getMessage());
			eventErrorVenster.pack();
			eventErrorVenster.setLocationRelativeTo(null);
			eventErrorVenster.setVisible(true);

		}

	}

	/*
	 * public void actionPerformed(ActionEvent evt) { JFileChooser chooser =
	 * (JFileChooser)evt.getSource(); if
	 * (JFileChooser.APPROVE_SELECTION.equals(evt.getActionCommand())) { // Open
	 * or Save was clicked
	 * 
	 * // Hide dialog chooser.getParent().setVisible(false);
	 * 
	 * } else if (JFileChooser.CANCEL_SELECTION.equals(evt.getActionCommand()))
	 * { // Cancel was clicked
	 * 
	 * // Hide dialog chooser.getParent().setVisible(false); } }
	 */

	/**
	 * This method is called from within the constructor to initialize the form.
	 * WARNING: Do NOT modify this code. The content of this method is always
	 * regenerated by the Form Editor.
	 */
	@SuppressWarnings("unchecked")
	// <editor-fold defaultstate="collapsed"
	// desc="Generated Code">//GEN-BEGIN:initComponents
	private void initComponents() {
		jButton31 = new javax.swing.JButton();
		jButton32 = new javax.swing.JButton();
		taskVenster = new javax.swing.JFrame();
		jPanel8 = new javax.swing.JPanel();
		jLabel6 = new javax.swing.JLabel();
		jTextField1 = new javax.swing.JTextField();
		jLabel7 = new javax.swing.JLabel();
		jCheckBox1 = new javax.swing.JCheckBox();
		jScrollPane20 = new javax.swing.JScrollPane();
		jTextPane7 = new javax.swing.JTextPane();
		jLabel8 = new javax.swing.JLabel();
		jLabel45 = new javax.swing.JLabel();
		jLabel46 = new javax.swing.JLabel();
		jLabel47 = new javax.swing.JLabel();
		jRadioButton8 = new javax.swing.JRadioButton();
		jRadioButton9 = new javax.swing.JRadioButton();
		jRadioButton10 = new javax.swing.JRadioButton();
		jPanel14 = new javax.swing.JPanel();
		jLabel48 = new javax.swing.JLabel();
		jTextField36 = new javax.swing.JTextField();
		jLabel49 = new javax.swing.JLabel();
		jTextField37 = new javax.swing.JTextField();
		jLabel50 = new javax.swing.JLabel();
		jComboBox6 = new javax.swing.JComboBox();
		jLabel51 = new javax.swing.JLabel();
		jCheckBox2 = new javax.swing.JCheckBox();
		jButton3 = new javax.swing.JButton();
		jButton11 = new javax.swing.JButton();
		jScrollPane22 = new javax.swing.JScrollPane();
		jTextPane9 = new javax.swing.JTextPane();
		jLabel60 = new javax.swing.JLabel();
		jScrollPane30 = new javax.swing.JScrollPane();
		jTextPane10 = new javax.swing.JTextPane();
		jLabel61 = new javax.swing.JLabel();
		jComboBox10 = new javax.swing.JComboBox();
		vakVenster = new javax.swing.JFrame();
		jPanel11 = new javax.swing.JPanel();
		jLabel1 = new javax.swing.JLabel();
		jTextField10 = new javax.swing.JTextField();
		jLabel17 = new javax.swing.JLabel();
		jScrollPane16 = new javax.swing.JScrollPane();
		jTextPane3 = new javax.swing.JTextPane();
		jLabel18 = new javax.swing.JLabel();
		jLabel19 = new javax.swing.JLabel();
		jLabel20 = new javax.swing.JLabel();
		jScrollPane17 = new javax.swing.JScrollPane();
		jTextPane4 = new javax.swing.JTextPane();
		jButton4 = new javax.swing.JButton();
		jButton6 = new javax.swing.JButton();
		jComboBox8 = new javax.swing.JComboBox();
		jComboBox9 = new javax.swing.JComboBox();
		contactVenster = new javax.swing.JFrame();
		jPanel12 = new javax.swing.JPanel();
		jLabel21 = new javax.swing.JLabel();
		jTextField6 = new javax.swing.JTextField();
		jLabel22 = new javax.swing.JLabel();
		jTextField18 = new javax.swing.JTextField();
		jTextField19 = new javax.swing.JTextField();
		jLabel23 = new javax.swing.JLabel();
		jLabel24 = new javax.swing.JLabel();
		jTextField20 = new javax.swing.JTextField();
		jComboBox3 = new javax.swing.JComboBox();
		jLabel25 = new javax.swing.JLabel();
		jLabel26 = new javax.swing.JLabel();
		jTextField21 = new javax.swing.JTextField();
		jLabel27 = new javax.swing.JLabel();
		jTextField22 = new javax.swing.JTextField();
		jButton9 = new javax.swing.JButton();
		jButton10 = new javax.swing.JButton();
		jLabel28 = new javax.swing.JLabel();
		jLabel29 = new javax.swing.JLabel();
		jTextField23 = new javax.swing.JTextField();
		jComboBox4 = new javax.swing.JComboBox();
		jScrollPane28 = new javax.swing.JScrollPane();
		jList9 = new javax.swing.JList();
		jLabel56 = new javax.swing.JLabel();
		jScrollPane29 = new javax.swing.JScrollPane();
		jList10 = new javax.swing.JList();
		jButton19 = new javax.swing.JButton();
		jButton20 = new javax.swing.JButton();
		jLabel57 = new javax.swing.JLabel();
		gebeurtenisVenster = new javax.swing.JFrame();
		jPanel9 = new javax.swing.JPanel();
		jLabel9 = new javax.swing.JLabel();
		jScrollPane18 = new javax.swing.JScrollPane();
		jTextPane5 = new javax.swing.JTextPane();
		jLabel10 = new javax.swing.JLabel();
		jLabel11 = new javax.swing.JLabel();
		jLabel33 = new javax.swing.JLabel();
		jLabel32 = new javax.swing.JLabel();
		jLabel37 = new javax.swing.JLabel();
		jLabel41 = new javax.swing.JLabel();
		jScrollPane19 = new javax.swing.JScrollPane();
		jTextPane6 = new javax.swing.JTextPane();
		jRadioButton5 = new javax.swing.JRadioButton();
		jRadioButton6 = new javax.swing.JRadioButton();
		jRadioButton7 = new javax.swing.JRadioButton();
		jPanel13 = new javax.swing.JPanel();
		jLabel42 = new javax.swing.JLabel();
		jTextField33 = new javax.swing.JTextField();
		jLabel43 = new javax.swing.JLabel();
		jComboBox5 = new javax.swing.JComboBox();
		jLabel44 = new javax.swing.JLabel();
		jTextField34 = new javax.swing.JTextField();
		jLabel62 = new javax.swing.JLabel();
		jComboBox11 = new javax.swing.JComboBox();
		jLabel68 = new javax.swing.JLabel();
		jComboBox37 = new javax.swing.JComboBox();
		jButton23 = new javax.swing.JButton();
		jButton24 = new javax.swing.JButton();
		jComboBox12 = new javax.swing.JComboBox();
		jComboBox13 = new javax.swing.JComboBox();
		jLabel30 = new javax.swing.JLabel();
		jComboBox14 = new javax.swing.JComboBox();
		jComboBox15 = new javax.swing.JComboBox();
		jLabel31 = new javax.swing.JLabel();
		jComboBox16 = new javax.swing.JComboBox();
		jComboBox17 = new javax.swing.JComboBox();
		jLabel34 = new javax.swing.JLabel();
		jComboBox18 = new javax.swing.JComboBox();
		jLabel35 = new javax.swing.JLabel();
		jComboBox19 = new javax.swing.JComboBox();
		jComboBox20 = new javax.swing.JComboBox();
		jLabel36 = new javax.swing.JLabel();
		jComboBox21 = new javax.swing.JComboBox();
		jComboBox22 = new javax.swing.JComboBox();
		jLabel38 = new javax.swing.JLabel();
		jComboBox23 = new javax.swing.JComboBox();
		jLabel39 = new javax.swing.JLabel();
		jComboBox24 = new javax.swing.JComboBox();
		jComboBox25 = new javax.swing.JComboBox();
		jLabel40 = new javax.swing.JLabel();
		jComboBox26 = new javax.swing.JComboBox();
		bestandsVenster = new javax.swing.JFrame();
		jPanel10 = new javax.swing.JPanel();
		jFileChooser1 = new javax.swing.JFileChooser();
		jLabel12 = new javax.swing.JLabel();
		jScrollPane13 = new javax.swing.JScrollPane();
		jTextPane2 = new javax.swing.JTextPane();
		jButton7 = new javax.swing.JButton();
		jButton8 = new javax.swing.JButton();
		jLabel13 = new javax.swing.JLabel();
		jComboBox7 = new javax.swing.JComboBox();
		jLabel64 = new javax.swing.JLabel();
		jComboBox27 = new javax.swing.JComboBox();
		jLabel65 = new javax.swing.JLabel();
		jButton27 = new javax.swing.JButton();
		jScrollPane31 = new javax.swing.JScrollPane();
		jList11 = new javax.swing.JList();
		jScrollPane32 = new javax.swing.JScrollPane();
		jList12 = new javax.swing.JList();
		jButton28 = new javax.swing.JButton();
		jButton29 = new javax.swing.JButton();
		jButton30 = new javax.swing.JButton();
		importVenster = new javax.swing.JFrame();
		jFileChooser2 = new javax.swing.JFileChooser();
		jFileChooser3 = new javax.swing.JFileChooser();
		verwijderVenster = new javax.swing.JDialog();
		jLabel14 = new javax.swing.JLabel();
		jButton12 = new javax.swing.JButton();
		jButton13 = new javax.swing.JButton();
		jLabel71 = new javax.swing.JLabel();
		aboutVenster = new javax.swing.JFrame();
		jPanel16 = new javax.swing.JPanel();
		jLabel53 = new javax.swing.JLabel();
		jLabel54 = new javax.swing.JLabel();
		jLabel55 = new javax.swing.JLabel();
		jButton14 = new javax.swing.JButton();
		inlogVenster = new javax.swing.JFrame();
		jPanel17 = new javax.swing.JPanel();
		jLabel58 = new javax.swing.JLabel();
		jLabel59 = new javax.swing.JLabel();
		jTextField9 = new javax.swing.JTextField();
		jPasswordField1 = new javax.swing.JPasswordField();
		jButton21 = new javax.swing.JButton();
		jButton22 = new javax.swing.JButton();
		buttonGroup1 = new javax.swing.ButtonGroup();
		nietGevondenVenster = new javax.swing.JDialog();
		jLabel63 = new javax.swing.JLabel();
		jButton25 = new javax.swing.JButton();
		jLabel72 = new javax.swing.JLabel();
		buttonGroup2 = new javax.swing.ButtonGroup();
		exportVenster = new javax.swing.JFrame();
		jPanel18 = new javax.swing.JPanel();
		jToggleButton3 = new javax.swing.JToggleButton();
		jToggleButton8 = new javax.swing.JToggleButton();
		jToggleButton1 = new javax.swing.JToggleButton();
		jToggleButton7 = new javax.swing.JToggleButton();
		jSeparator2 = new javax.swing.JSeparator();
		jSeparator3 = new javax.swing.JSeparator();
		jSeparator4 = new javax.swing.JSeparator();
		jToggleButton5 = new javax.swing.JToggleButton();
		jToggleButton6 = new javax.swing.JToggleButton();
		jToggleButton9 = new javax.swing.JToggleButton();
		jToggleButton10 = new javax.swing.JToggleButton();
		jToggleButton4 = new javax.swing.JToggleButton();
		jToggleButton2 = new javax.swing.JToggleButton();
		jToggleButton11 = new javax.swing.JToggleButton();
		jToggleButton12 = new javax.swing.JToggleButton();
		jPanel19 = new javax.swing.JPanel();
		jLabel67 = new javax.swing.JLabel();
		jButton33 = new javax.swing.JButton();
		jButton34 = new javax.swing.JButton();
		jButton35 = new javax.swing.JButton();
		jButton36 = new javax.swing.JButton();
		jButton37 = new javax.swing.JButton();
		jButton38 = new javax.swing.JButton();
		jButton39 = new javax.swing.JButton();
		jButton40 = new javax.swing.JButton();
		jButton41 = new javax.swing.JButton();
		eventErrorVenster = new javax.swing.JDialog();
		jButton26 = new javax.swing.JButton();
		jLabel66 = new javax.swing.JLabel();
		jLabel69 = new javax.swing.JLabel();
		AchtergrondPanel = new javax.swing.JPanel();
		LinksbovenPanel = new javax.swing.JPanel();
		logo = new javax.swing.JLabel();
		DashboardPanel = new javax.swing.JPanel();
		startPanel = new javax.swing.JPanel();
		planningPanel = new javax.swing.JPanel();
		jScrollPane27 = new javax.swing.JScrollPane();
		jTextArea9 = new javax.swing.JTextArea();
		fooPanel = new javax.swing.JPanel();
		jScrollPane2 = new javax.swing.JScrollPane();
		jTextArea1 = new javax.swing.JTextArea();
		vakkenPanel = new javax.swing.JPanel();
		vakInformatiePanel = new javax.swing.JPanel();
		jScrollPane4 = new javax.swing.JScrollPane();
		jTextArea2 = new javax.swing.JTextArea();
		lesGeverPanel = new javax.swing.JPanel();
		jScrollPane5 = new javax.swing.JScrollPane();
		jList7 = new javax.swing.JList();
		jButton2 = new javax.swing.JButton();
		puntenPanel = new javax.swing.JPanel();
		jScrollPane6 = new javax.swing.JScrollPane();
		jTextArea4 = new javax.swing.JTextArea();
		jScrollPane23 = new javax.swing.JScrollPane();
		jList1 = new javax.swing.JList();
		smartfolderPanel = new javax.swing.JPanel();
		jPanel2 = new javax.swing.JPanel();
		jLabel2 = new javax.swing.JLabel();
		jScrollPane7 = new javax.swing.JScrollPane();
		jList2 = new javax.swing.JList();
		jLabel3 = new javax.swing.JLabel();
		jScrollPane8 = new javax.swing.JScrollPane();
		jList3 = new javax.swing.JList();
		jRadioButton1 = new javax.swing.JRadioButton();
		jRadioButton2 = new javax.swing.JRadioButton();
		jRadioButton3 = new javax.swing.JRadioButton();
		jRadioButton4 = new javax.swing.JRadioButton();
		jScrollPane9 = new javax.swing.JScrollPane();
		jList4 = new javax.swing.JList();
		jButton1 = new javax.swing.JButton();
		jSeparator1 = new javax.swing.JSeparator();
		jComboBox1 = new javax.swing.JComboBox();
		jLabel4 = new javax.swing.JLabel();
		jComboBox2 = new javax.swing.JComboBox();
		jLabel5 = new javax.swing.JLabel();
		jButton5 = new javax.swing.JButton();
		jPanel3 = new javax.swing.JPanel();
		jScrollPane3 = new javax.swing.JScrollPane();
		jTable1 = new javax.swing.JTable();
		projectenPanel = new javax.swing.JPanel();
		jScrollPane1 = new javax.swing.JScrollPane();
		jList5 = new javax.swing.JList();
		jPanel1 = new javax.swing.JPanel();
		jScrollPane10 = new javax.swing.JScrollPane();
		jTextArea5 = new javax.swing.JTextArea();
		jPanel4 = new javax.swing.JPanel();
		jScrollPane11 = new javax.swing.JScrollPane();
		jTextArea6 = new javax.swing.JTextArea();
		jPanel5 = new javax.swing.JPanel();
		jScrollPane25 = new javax.swing.JScrollPane();
		jTextArea7 = new javax.swing.JTextArea();
		jPanel6 = new javax.swing.JPanel();
		jScrollPane24 = new javax.swing.JScrollPane();
		jTextArea3 = new javax.swing.JTextArea();
		jPanel7 = new javax.swing.JPanel();
		jScrollPane26 = new javax.swing.JScrollPane();
		jTextArea8 = new javax.swing.JTextArea();
		jPanel15 = new javax.swing.JPanel();
		jScrollPane12 = new javax.swing.JScrollPane();
		jList6 = new javax.swing.JList();
		jButton18 = new javax.swing.JButton();
		iCalenderPanel = new javax.swing.JPanel();
		label1 = new java.awt.Label();
		contactenPanel = new javax.swing.JPanel();
		jScrollPane14 = new javax.swing.JScrollPane();
		jTextPane1 = new javax.swing.JTextPane();
		jScrollPane15 = new javax.swing.JScrollPane();
		jList8 = new javax.swing.JList();
		button3 = new java.awt.Button();
		jScrollPane21 = new javax.swing.JScrollPane();
		jTextPane8 = new javax.swing.JTextPane();
		jLabel15 = new javax.swing.JLabel();
		jLabel16 = new javax.swing.JLabel();
		jLabel52 = new javax.swing.JLabel();
		jButton15 = new javax.swing.JButton();
		jButton16 = new javax.swing.JButton();
		jButton17 = new javax.swing.JButton();
		startButton = new javax.swing.JToggleButton();
		vakkenButton = new javax.swing.JToggleButton();
		smartfoldersButton = new javax.swing.JToggleButton();
		projectenButton = new javax.swing.JToggleButton();
		iCalenderButton = new javax.swing.JToggleButton();
		contactenButton = new javax.swing.JToggleButton();
		jMenuBar1 = new javax.swing.JMenuBar();
		jMenu1 = new javax.swing.JMenu();
		jMenu3 = new javax.swing.JMenu();
		jMenuItem3 = new javax.swing.JMenuItem();
		jMenu13 = new javax.swing.JMenu();
		jMenu12 = new javax.swing.JMenu();
		jMenu4 = new javax.swing.JMenu();
		jMenuItem6 = new javax.swing.JMenuItem();
		jMenu6 = new javax.swing.JMenu();
		jMenu8 = new javax.swing.JMenu();
		jMenu5 = new javax.swing.JMenu();
		jMenuItem1 = new javax.swing.JMenuItem();
		jMenu10 = new javax.swing.JMenu();
		jMenu14 = new javax.swing.JMenu();
		jMenu7 = new javax.swing.JMenu();
		jMenuItem14 = new javax.swing.JMenuItem();
		jMenu15 = new javax.swing.JMenu();
		jMenu16 = new javax.swing.JMenu();
		jMenu9 = new javax.swing.JMenu();
		jMenuItem21 = new javax.swing.JMenuItem();
		jMenu17 = new javax.swing.JMenu();
		jMenu18 = new javax.swing.JMenu();
		jMenu11 = new javax.swing.JMenu();
		jMenuItem26 = new javax.swing.JMenuItem();
		jMenuItem27 = new javax.swing.JMenuItem();
		jMenu19 = new javax.swing.JMenu();
		jMenuItem2 = new javax.swing.JMenuItem();
		jMenuItem4 = new javax.swing.JMenuItem();
		jMenuItem7 = new javax.swing.JMenuItem();
		jMenu2 = new javax.swing.JMenu();
		jMenuItem5 = new javax.swing.JMenuItem();
		jListColumns = new javax.swing.JList();
		jTextFieldTable = new javax.swing.JTextField();
		jTextFieldColumn = new javax.swing.JTextField();
		jLabel2 = new javax.swing.JLabel();
		jLabel3 = new javax.swing.JLabel();
		jLabel4 = new javax.swing.JLabel();
		jLabel5 = new javax.swing.JLabel();
		jLabel64 = new javax.swing.JLabel();
		jRadioButtonNone = new javax.swing.JRadioButton();
		jRadioButtonSmaller = new javax.swing.JRadioButton();
		jRadioButtonSmallerEqual = new javax.swing.JRadioButton();
		jRadioButtonBigger = new javax.swing.JRadioButton();
		jRadioButtonBiggerEqual = new javax.swing.JRadioButton();
		jRadioButtonEqual = new javax.swing.JRadioButton();
		jTextFieldConstraintValue = new javax.swing.JTextField();
		jLabel65 = new javax.swing.JLabel();
		jButtonAdd = new javax.swing.JButton();
		jButtonModify = new javax.swing.JButton();
		jButtonRemove = new javax.swing.JButton();
		buttonGroup2 = new javax.swing.ButtonGroup();
		buttonGroupConstraint = new ButtonGroup();
		buttonGroup3 = new javax.swing.ButtonGroup();
		jListTabels = new javax.swing.JList();

		taskVenster.setTitle("Taak");

		jPanel8.setBorder(new javax.swing.border.SoftBevelBorder(
				javax.swing.border.BevelBorder.RAISED));

		jLabel6.setFont(new java.awt.Font("Arial", 0, 14));
		jLabel6.setText("Naam:");

		jLabel7.setFont(new java.awt.Font("Arial", 0, 14));
		jLabel7.setText("Beschrijving:");

		jCheckBox1.setFont(new java.awt.Font("Arial", 0, 14));

		jTextPane7.setBorder(null);
		jTextPane7.setMargin(new java.awt.Insets(5, 5, 5, 5));
		jScrollPane20.setViewportView(jTextPane7);

		jLabel8.setFont(new java.awt.Font("Arial", 0, 14));
		jLabel8.setText("Punten:");

		jLabel45.setText("/");

		jLabel46.setFont(new java.awt.Font("Arial", 0, 14));
		jLabel46.setText("Klaar:");

		jLabel47.setFont(new java.awt.Font("Arial", 0, 14));
		jLabel47.setText("Extra informatie:");

		buttonGroup1.add(jRadioButton8);
		jRadioButton8.setFont(new java.awt.Font("Arial", 0, 14));
		jRadioButton8.setSelected(true);
		jRadioButton8.setText("Taak");
		jRadioButton8.addActionListener(new java.awt.event.ActionListener() {
			public void actionPerformed(java.awt.event.ActionEvent evt) {

				jRadioButton8ActionPerformed(evt);

			}
		});

		buttonGroup1.add(jRadioButton9);
		jRadioButton9.setFont(new java.awt.Font("Arial", 0, 14));
		jRadioButton9.setText("Examen");
		jRadioButton9.addActionListener(new java.awt.event.ActionListener() {
			public void actionPerformed(java.awt.event.ActionEvent evt) {
				jRadioButton9ActionPerformed(evt);
			}
		});

		buttonGroup1.add(jRadioButton10);
		jRadioButton10.setFont(new java.awt.Font("Arial", 0, 14));
		jRadioButton10.setText("Project");
		jRadioButton10.addActionListener(new java.awt.event.ActionListener() {
			public void actionPerformed(java.awt.event.ActionEvent evt) {
				jRadioButton10ActionPerformed(evt);
			}
		});

		jPanel14.setBorder(javax.swing.BorderFactory.createEtchedBorder());

		jLabel48.setFont(new java.awt.Font("Arial", 0, 14));
		jLabel48.setText("Lokaal:");

		jLabel49.setFont(new java.awt.Font("Arial", 0, 14));
		jLabel49.setText("Duur (uren) :");

		jLabel50.setFont(new java.awt.Font("Arial", 0, 14));
		jLabel50.setText("Type:");

		jComboBox6.setFont(new java.awt.Font("Arial", 0, 14));
		jComboBox6.setModel(new javax.swing.DefaultComboBoxModel(new String[] {
				"Theorie", "Praktijk", "Beide" }));

		jLabel51.setFont(new java.awt.Font("Arial", 0, 14));
		jLabel51.setText("Mondeling:");

		javax.swing.GroupLayout jPanel14Layout = new javax.swing.GroupLayout(
				jPanel14);
		jPanel14.setLayout(jPanel14Layout);
		jPanel14Layout
				.setHorizontalGroup(jPanel14Layout
						.createParallelGroup(
								javax.swing.GroupLayout.Alignment.LEADING)
						.addGroup(
								jPanel14Layout
										.createSequentialGroup()
										.addContainerGap()
										.addGroup(
												jPanel14Layout
														.createParallelGroup(
																javax.swing.GroupLayout.Alignment.LEADING)
														.addGroup(
																jPanel14Layout
																		.createParallelGroup(
																				javax.swing.GroupLayout.Alignment.LEADING,
																				false)
																		.addComponent(
																				jTextField36)
																		.addComponent(
																				jLabel48,
																				javax.swing.GroupLayout.DEFAULT_SIZE,
																				javax.swing.GroupLayout.DEFAULT_SIZE,
																				Short.MAX_VALUE))
														.addGroup(
																jPanel14Layout
																		.createSequentialGroup()
																		.addComponent(
																				jLabel51)
																		.addGap(
																				18,
																				18,
																				18)
																		.addComponent(
																				jCheckBox2)))
										.addGroup(
												jPanel14Layout
														.createParallelGroup(
																javax.swing.GroupLayout.Alignment.LEADING)
														.addGroup(
																jPanel14Layout
																		.createSequentialGroup()
																		.addGap(
																				23,
																				23,
																				23)
																		.addGroup(
																				jPanel14Layout
																						.createParallelGroup(
																								javax.swing.GroupLayout.Alignment.LEADING)
																						.addComponent(
																								jLabel49)
																						.addComponent(
																								jTextField37,
																								javax.swing.GroupLayout.PREFERRED_SIZE,
																								33,
																								javax.swing.GroupLayout.PREFERRED_SIZE)))
														.addGroup(
																jPanel14Layout
																		.createSequentialGroup()
																		.addGap(
																				18,
																				18,
																				18)
																		.addGroup(
																				jPanel14Layout
																						.createParallelGroup(
																								javax.swing.GroupLayout.Alignment.LEADING)
																						.addComponent(
																								jComboBox6,
																								javax.swing.GroupLayout.PREFERRED_SIZE,
																								javax.swing.GroupLayout.DEFAULT_SIZE,
																								javax.swing.GroupLayout.PREFERRED_SIZE)
																						.addComponent(
																								jLabel50))))
										.addContainerGap(21, Short.MAX_VALUE)));

		jPanel14Layout.linkSize(javax.swing.SwingConstants.HORIZONTAL,
				new java.awt.Component[] { jTextField36, jTextField37 });

		jPanel14Layout
				.setVerticalGroup(jPanel14Layout
						.createParallelGroup(
								javax.swing.GroupLayout.Alignment.LEADING)
						.addGroup(
								jPanel14Layout
										.createSequentialGroup()
										.addContainerGap()
										.addGroup(
												jPanel14Layout
														.createParallelGroup(
																javax.swing.GroupLayout.Alignment.LEADING)
														.addGroup(
																jPanel14Layout
																		.createSequentialGroup()
																		.addComponent(
																				jLabel48)
																		.addPreferredGap(
																				javax.swing.LayoutStyle.ComponentPlacement.RELATED)
																		.addComponent(
																				jTextField36,
																				javax.swing.GroupLayout.PREFERRED_SIZE,
																				javax.swing.GroupLayout.DEFAULT_SIZE,
																				javax.swing.GroupLayout.PREFERRED_SIZE))
														.addGroup(
																jPanel14Layout
																		.createSequentialGroup()
																		.addComponent(
																				jLabel49)
																		.addPreferredGap(
																				javax.swing.LayoutStyle.ComponentPlacement.RELATED)
																		.addComponent(
																				jTextField37,
																				javax.swing.GroupLayout.PREFERRED_SIZE,
																				javax.swing.GroupLayout.DEFAULT_SIZE,
																				javax.swing.GroupLayout.PREFERRED_SIZE)))
										.addPreferredGap(
												javax.swing.LayoutStyle.ComponentPlacement.RELATED)
										.addGroup(
												jPanel14Layout
														.createParallelGroup(
																javax.swing.GroupLayout.Alignment.LEADING)
														.addGroup(
																jPanel14Layout
																		.createParallelGroup(
																				javax.swing.GroupLayout.Alignment.TRAILING)
																		.addComponent(
																				jLabel51)
																		.addComponent(
																				jCheckBox2))
														.addGroup(
																jPanel14Layout
																		.createSequentialGroup()
																		.addComponent(
																				jLabel50)
																		.addPreferredGap(
																				javax.swing.LayoutStyle.ComponentPlacement.RELATED)
																		.addComponent(
																				jComboBox6,
																				javax.swing.GroupLayout.PREFERRED_SIZE,
																				javax.swing.GroupLayout.DEFAULT_SIZE,
																				javax.swing.GroupLayout.PREFERRED_SIZE)))
										.addContainerGap(24, Short.MAX_VALUE)));

		jButton3.setText("Opslaan");
		jButton3.addActionListener(new java.awt.event.ActionListener() {
			public void actionPerformed(java.awt.event.ActionEvent evt) {
				jButton3ActionPerformed(evt);
			}
		});

		jButton11.setText("Annuleren");
		jButton11.addActionListener(new java.awt.event.ActionListener() {
			public void actionPerformed(java.awt.event.ActionEvent evt) {
				jButton11ActionPerformed(evt);
			}
		});

		jTextPane9.setBorder(javax.swing.BorderFactory.createEmptyBorder(1, 1,
				1, 1));
		jTextPane9.setMargin(new java.awt.Insets(5, 5, 5, 5));
		jScrollPane22.setViewportView(jTextPane9);

		jLabel60.setFont(new java.awt.Font("Arial", 0, 14));
		jLabel60.setText("20");

		jTextPane10.setBorder(null);
		jTextPane10.setMargin(new java.awt.Insets(5, 5, 5, 5));
		jScrollPane30.setViewportView(jTextPane10);

		jLabel61.setFont(new java.awt.Font("Arial", 0, 14));
		jLabel61.setText("Planning");

		jComboBox10.setModel(new javax.swing.DefaultComboBoxModel(new String[] {
				"0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11",
				"12", "13", "14", "15", "16", "17", "18", "19", "20" }));

		javax.swing.GroupLayout jPanel8Layout = new javax.swing.GroupLayout(
				jPanel8);
		jPanel8.setLayout(jPanel8Layout);
		jPanel8Layout
				.setHorizontalGroup(jPanel8Layout
						.createParallelGroup(
								javax.swing.GroupLayout.Alignment.LEADING)
						.addGroup(
								jPanel8Layout
										.createSequentialGroup()
										.addContainerGap()
										.addGroup(
												jPanel8Layout
														.createParallelGroup(
																javax.swing.GroupLayout.Alignment.LEADING)
														.addGroup(
																jPanel8Layout
																		.createSequentialGroup()
																		.addComponent(
																				jButton3)
																		.addPreferredGap(
																				javax.swing.LayoutStyle.ComponentPlacement.RELATED)
																		.addComponent(
																				jButton11))
														.addComponent(
																jScrollPane20,
																javax.swing.GroupLayout.DEFAULT_SIZE,
																418,
																Short.MAX_VALUE)
														.addGroup(
																jPanel8Layout
																		.createSequentialGroup()
																		.addGroup(
																				jPanel8Layout
																						.createParallelGroup(
																								javax.swing.GroupLayout.Alignment.LEADING)
																						.addComponent(
																								jRadioButton8)
																						.addComponent(
																								jRadioButton9)
																						.addComponent(
																								jRadioButton10))
																		.addGap(
																				91,
																				91,
																				91)
																		.addComponent(
																				jPanel14,
																				javax.swing.GroupLayout.DEFAULT_SIZE,
																				javax.swing.GroupLayout.DEFAULT_SIZE,
																				Short.MAX_VALUE))
														.addGroup(
																jPanel8Layout
																		.createSequentialGroup()
																		.addGroup(
																				jPanel8Layout
																						.createParallelGroup(
																								javax.swing.GroupLayout.Alignment.LEADING)
																						.addComponent(
																								jLabel7)
																						.addComponent(
																								jTextField1,
																								javax.swing.GroupLayout.PREFERRED_SIZE,
																								163,
																								javax.swing.GroupLayout.PREFERRED_SIZE)
																						.addComponent(
																								jLabel6))
																		.addGap(
																				65,
																				65,
																				65)
																		.addGroup(
																				jPanel8Layout
																						.createParallelGroup(
																								javax.swing.GroupLayout.Alignment.LEADING)
																						.addComponent(
																								jLabel46)
																						.addComponent(
																								jLabel8))
																		.addPreferredGap(
																				javax.swing.LayoutStyle.ComponentPlacement.RELATED)
																		.addGroup(
																				jPanel8Layout
																						.createParallelGroup(
																								javax.swing.GroupLayout.Alignment.CENTER)
																						.addGroup(
																								jPanel8Layout
																										.createSequentialGroup()
																										.addComponent(
																												jComboBox10,
																												javax.swing.GroupLayout.PREFERRED_SIZE,
																												36,
																												javax.swing.GroupLayout.PREFERRED_SIZE)
																										.addPreferredGap(
																												javax.swing.LayoutStyle.ComponentPlacement.RELATED)
																										.addComponent(
																												jLabel45)
																										.addPreferredGap(
																												javax.swing.LayoutStyle.ComponentPlacement.RELATED)
																										.addComponent(
																												jLabel60))
																						.addComponent(
																								jCheckBox1,
																								javax.swing.GroupLayout.PREFERRED_SIZE,
																								27,
																								javax.swing.GroupLayout.PREFERRED_SIZE))
																		.addGap(
																				67,
																				67,
																				67))
														.addComponent(
																jScrollPane30,
																javax.swing.GroupLayout.PREFERRED_SIZE,
																418,
																javax.swing.GroupLayout.PREFERRED_SIZE)
														.addGroup(
																jPanel8Layout
																		.createSequentialGroup()
																		.addComponent(
																				jLabel47)
																		.addPreferredGap(
																				javax.swing.LayoutStyle.ComponentPlacement.RELATED,
																				316,
																				javax.swing.GroupLayout.PREFERRED_SIZE))
														.addComponent(
																jScrollPane22,
																javax.swing.GroupLayout.PREFERRED_SIZE,
																418,
																javax.swing.GroupLayout.PREFERRED_SIZE)
														.addGroup(
																jPanel8Layout
																		.createSequentialGroup()
																		.addComponent(
																				jLabel61)
																		.addPreferredGap(
																				javax.swing.LayoutStyle.ComponentPlacement.RELATED,
																				363,
																				javax.swing.GroupLayout.PREFERRED_SIZE)))
										.addContainerGap()));

		jPanel8Layout.linkSize(javax.swing.SwingConstants.HORIZONTAL,
				new java.awt.Component[] { jScrollPane20, jScrollPane22,
						jScrollPane30 });

		jPanel8Layout
				.setVerticalGroup(jPanel8Layout
						.createParallelGroup(
								javax.swing.GroupLayout.Alignment.LEADING)
						.addGroup(
								jPanel8Layout
										.createSequentialGroup()
										.addContainerGap()
										.addGroup(
												jPanel8Layout
														.createParallelGroup(
																javax.swing.GroupLayout.Alignment.LEADING)
														.addGroup(
																jPanel8Layout
																		.createSequentialGroup()
																		.addComponent(
																				jLabel6)
																		.addPreferredGap(
																				javax.swing.LayoutStyle.ComponentPlacement.RELATED)
																		.addComponent(
																				jTextField1,
																				javax.swing.GroupLayout.PREFERRED_SIZE,
																				javax.swing.GroupLayout.DEFAULT_SIZE,
																				javax.swing.GroupLayout.PREFERRED_SIZE)
																		.addPreferredGap(
																				javax.swing.LayoutStyle.ComponentPlacement.RELATED)
																		.addComponent(
																				jLabel7))
														.addGroup(
																jPanel8Layout
																		.createSequentialGroup()
																		.addGroup(
																				jPanel8Layout
																						.createParallelGroup(
																								javax.swing.GroupLayout.Alignment.TRAILING)
																						.addComponent(
																								jLabel46)
																						.addComponent(
																								jCheckBox1))
																		.addPreferredGap(
																				javax.swing.LayoutStyle.ComponentPlacement.RELATED)
																		.addGroup(
																				jPanel8Layout
																						.createParallelGroup(
																								javax.swing.GroupLayout.Alignment.BASELINE)
																						.addComponent(
																								jLabel8)
																						.addComponent(
																								jComboBox10,
																								javax.swing.GroupLayout.PREFERRED_SIZE,
																								javax.swing.GroupLayout.DEFAULT_SIZE,
																								javax.swing.GroupLayout.PREFERRED_SIZE)
																						.addComponent(
																								jLabel45)
																						.addComponent(
																								jLabel60))))
										.addPreferredGap(
												javax.swing.LayoutStyle.ComponentPlacement.RELATED)
										.addComponent(
												jScrollPane20,
												javax.swing.GroupLayout.PREFERRED_SIZE,
												81,
												javax.swing.GroupLayout.PREFERRED_SIZE)
										.addGroup(
												jPanel8Layout
														.createParallelGroup(
																javax.swing.GroupLayout.Alignment.LEADING)
														.addGroup(
																jPanel8Layout
																		.createSequentialGroup()
																		.addGap(
																				47,
																				47,
																				47)
																		.addComponent(
																				jRadioButton8)
																		.addPreferredGap(
																				javax.swing.LayoutStyle.ComponentPlacement.RELATED)
																		.addComponent(
																				jRadioButton9)
																		.addPreferredGap(
																				javax.swing.LayoutStyle.ComponentPlacement.RELATED)
																		.addComponent(
																				jRadioButton10)
																		.addGap(
																				24,
																				24,
																				24)
																		.addComponent(
																				jLabel61))
														.addGroup(
																jPanel8Layout
																		.createSequentialGroup()
																		.addGap(
																				28,
																				28,
																				28)
																		.addComponent(
																				jPanel14,
																				javax.swing.GroupLayout.PREFERRED_SIZE,
																				javax.swing.GroupLayout.DEFAULT_SIZE,
																				javax.swing.GroupLayout.PREFERRED_SIZE)))
										.addPreferredGap(
												javax.swing.LayoutStyle.ComponentPlacement.RELATED)
										.addComponent(
												jScrollPane30,
												javax.swing.GroupLayout.PREFERRED_SIZE,
												86,
												javax.swing.GroupLayout.PREFERRED_SIZE)
										.addPreferredGap(
												javax.swing.LayoutStyle.ComponentPlacement.RELATED)
										.addComponent(jLabel47)
										.addPreferredGap(
												javax.swing.LayoutStyle.ComponentPlacement.RELATED)
										.addComponent(
												jScrollPane22,
												javax.swing.GroupLayout.PREFERRED_SIZE,
												81,
												javax.swing.GroupLayout.PREFERRED_SIZE)
										.addGap(18, 18, 18)
										.addGroup(
												jPanel8Layout
														.createParallelGroup(
																javax.swing.GroupLayout.Alignment.BASELINE)
														.addComponent(jButton3)
														.addComponent(jButton11))
										.addContainerGap(15, Short.MAX_VALUE)));

		jPanel8Layout.linkSize(javax.swing.SwingConstants.VERTICAL,
				new java.awt.Component[] { jScrollPane20, jScrollPane22,
						jScrollPane30 });

		javax.swing.GroupLayout taskVensterLayout = new javax.swing.GroupLayout(
				taskVenster.getContentPane());
		taskVenster.getContentPane().setLayout(taskVensterLayout);
		taskVensterLayout.setHorizontalGroup(taskVensterLayout
				.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
				.addGroup(
						taskVensterLayout.createSequentialGroup()
								.addContainerGap().addComponent(jPanel8,
										javax.swing.GroupLayout.PREFERRED_SIZE,
										javax.swing.GroupLayout.DEFAULT_SIZE,
										javax.swing.GroupLayout.PREFERRED_SIZE)
								.addContainerGap(
										javax.swing.GroupLayout.DEFAULT_SIZE,
										Short.MAX_VALUE)));
		taskVensterLayout.setVerticalGroup(taskVensterLayout
				.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
				.addGroup(
						taskVensterLayout.createSequentialGroup()
								.addContainerGap().addComponent(jPanel8,
										javax.swing.GroupLayout.PREFERRED_SIZE,
										javax.swing.GroupLayout.DEFAULT_SIZE,
										javax.swing.GroupLayout.PREFERRED_SIZE)
								.addContainerGap(
										javax.swing.GroupLayout.DEFAULT_SIZE,
										Short.MAX_VALUE)));

		vakVenster.setTitle("Vak");

		jPanel11.setBorder(new javax.swing.border.SoftBevelBorder(
				javax.swing.border.BevelBorder.RAISED));

		jLabel1.setFont(new java.awt.Font("Arial", 0, 14));
		jLabel1.setText("Naam:");

		jLabel17.setFont(new java.awt.Font("Arial", 0, 14));
		jLabel17.setText("Beschrijving:");

		jTextPane3.setMargin(new java.awt.Insets(5, 5, 5, 5));
		jScrollPane16.setViewportView(jTextPane3);

		jLabel18.setFont(new java.awt.Font("Arial", 0, 14));
		jLabel18.setText("Beginjaar:");

		jLabel19.setFont(new java.awt.Font("Arial", 0, 14));
		jLabel19.setText("Semester:");

		jLabel20.setFont(new java.awt.Font("Arial", 0, 14));
		jLabel20.setText("Extra informatie:");

		jTextPane4.setMargin(new java.awt.Insets(5, 5, 5, 5));
		jScrollPane17.setViewportView(jTextPane4);

		jButton4.setText("Opslaan");
		jButton4.addActionListener(new java.awt.event.ActionListener() {
			public void actionPerformed(java.awt.event.ActionEvent evt) {
				jButton4ActionPerformed(evt);
			}
		});

		jButton6.setText("Annuleren");
		jButton6.addActionListener(new java.awt.event.ActionListener() {
			public void actionPerformed(java.awt.event.ActionEvent evt) {
				jButton6ActionPerformed(evt);
			}
		});

		jComboBox8.setModel(new javax.swing.DefaultComboBoxModel(new String[] {
				"1", "2", " " }));

		javax.swing.GroupLayout jPanel11Layout = new javax.swing.GroupLayout(
				jPanel11);
		jPanel11.setLayout(jPanel11Layout);
		jPanel11Layout
				.setHorizontalGroup(jPanel11Layout
						.createParallelGroup(
								javax.swing.GroupLayout.Alignment.LEADING)
						.addGroup(
								jPanel11Layout
										.createSequentialGroup()
										.addContainerGap()
										.addGroup(
												jPanel11Layout
														.createParallelGroup(
																javax.swing.GroupLayout.Alignment.LEADING)
														.addGroup(
																jPanel11Layout
																		.createSequentialGroup()
																		.addGroup(
																				jPanel11Layout
																						.createParallelGroup(
																								javax.swing.GroupLayout.Alignment.LEADING)
																						.addComponent(
																								jLabel1)
																						.addComponent(
																								jTextField10,
																								javax.swing.GroupLayout.PREFERRED_SIZE,
																								246,
																								javax.swing.GroupLayout.PREFERRED_SIZE)
																						.addComponent(
																								jLabel17))
																		.addContainerGap())
														.addGroup(
																jPanel11Layout
																		.createSequentialGroup()
																		.addComponent(
																				jLabel18,
																				javax.swing.GroupLayout.DEFAULT_SIZE,
																				javax.swing.GroupLayout.DEFAULT_SIZE,
																				Short.MAX_VALUE)
																		.addGap(
																				485,
																				485,
																				485))
														.addGroup(
																jPanel11Layout
																		.createSequentialGroup()
																		.addComponent(
																				jLabel20)
																		.addContainerGap(
																				362,
																				Short.MAX_VALUE))
														.addGroup(
																jPanel11Layout
																		.createSequentialGroup()
																		.addComponent(
																				jButton4)
																		.addPreferredGap(
																				javax.swing.LayoutStyle.ComponentPlacement.RELATED)
																		.addComponent(
																				jButton6)
																		.addContainerGap(
																				318,
																				Short.MAX_VALUE))
														.addGroup(
																jPanel11Layout
																		.createSequentialGroup()
																		.addGroup(
																				jPanel11Layout
																						.createParallelGroup(
																								javax.swing.GroupLayout.Alignment.TRAILING,
																								false)
																						.addComponent(
																								jScrollPane17,
																								javax.swing.GroupLayout.Alignment.LEADING)
																						.addComponent(
																								jScrollPane16,
																								javax.swing.GroupLayout.Alignment.LEADING,
																								javax.swing.GroupLayout.DEFAULT_SIZE,
																								444,
																								Short.MAX_VALUE))
																		.addContainerGap())
														.addGroup(
																jPanel11Layout
																		.createSequentialGroup()
																		.addComponent(
																				jComboBox8,
																				javax.swing.GroupLayout.PREFERRED_SIZE,
																				javax.swing.GroupLayout.DEFAULT_SIZE,
																				javax.swing.GroupLayout.PREFERRED_SIZE)
																		.addContainerGap(
																				425,
																				Short.MAX_VALUE))
														.addGroup(
																jPanel11Layout
																		.createSequentialGroup()
																		.addGroup(
																				jPanel11Layout
																						.createParallelGroup(
																								javax.swing.GroupLayout.Alignment.TRAILING,
																								false)
																						.addComponent(
																								jComboBox9,
																								javax.swing.GroupLayout.Alignment.LEADING,
																								0,
																								javax.swing.GroupLayout.DEFAULT_SIZE,
																								Short.MAX_VALUE)
																						.addComponent(
																								jLabel19,
																								javax.swing.GroupLayout.Alignment.LEADING,
																								javax.swing.GroupLayout.DEFAULT_SIZE,
																								javax.swing.GroupLayout.DEFAULT_SIZE,
																								Short.MAX_VALUE))
																		.addContainerGap(
																				400,
																				Short.MAX_VALUE)))));
		jPanel11Layout
				.setVerticalGroup(jPanel11Layout
						.createParallelGroup(
								javax.swing.GroupLayout.Alignment.LEADING)
						.addGroup(
								jPanel11Layout
										.createSequentialGroup()
										.addContainerGap()
										.addComponent(
												jLabel1,
												javax.swing.GroupLayout.PREFERRED_SIZE,
												16,
												javax.swing.GroupLayout.PREFERRED_SIZE)
										.addPreferredGap(
												javax.swing.LayoutStyle.ComponentPlacement.RELATED)
										.addComponent(
												jTextField10,
												javax.swing.GroupLayout.PREFERRED_SIZE,
												javax.swing.GroupLayout.DEFAULT_SIZE,
												javax.swing.GroupLayout.PREFERRED_SIZE)
										.addPreferredGap(
												javax.swing.LayoutStyle.ComponentPlacement.RELATED)
										.addComponent(
												jLabel17,
												javax.swing.GroupLayout.PREFERRED_SIZE,
												17,
												javax.swing.GroupLayout.PREFERRED_SIZE)
										.addPreferredGap(
												javax.swing.LayoutStyle.ComponentPlacement.RELATED)
										.addComponent(
												jScrollPane16,
												javax.swing.GroupLayout.PREFERRED_SIZE,
												77,
												javax.swing.GroupLayout.PREFERRED_SIZE)
										.addPreferredGap(
												javax.swing.LayoutStyle.ComponentPlacement.RELATED)
										.addComponent(jLabel18)
										.addPreferredGap(
												javax.swing.LayoutStyle.ComponentPlacement.RELATED)
										.addComponent(
												jComboBox9,
												javax.swing.GroupLayout.PREFERRED_SIZE,
												javax.swing.GroupLayout.DEFAULT_SIZE,
												javax.swing.GroupLayout.PREFERRED_SIZE)
										.addPreferredGap(
												javax.swing.LayoutStyle.ComponentPlacement.RELATED)
										.addComponent(jLabel19)
										.addPreferredGap(
												javax.swing.LayoutStyle.ComponentPlacement.RELATED)
										.addComponent(
												jComboBox8,
												javax.swing.GroupLayout.PREFERRED_SIZE,
												javax.swing.GroupLayout.DEFAULT_SIZE,
												javax.swing.GroupLayout.PREFERRED_SIZE)
										.addGap(6, 6, 6)
										.addComponent(jLabel20)
										.addPreferredGap(
												javax.swing.LayoutStyle.ComponentPlacement.RELATED)
										.addComponent(
												jScrollPane17,
												javax.swing.GroupLayout.DEFAULT_SIZE,
												84, Short.MAX_VALUE)
										.addPreferredGap(
												javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
										.addGroup(
												jPanel11Layout
														.createParallelGroup(
																javax.swing.GroupLayout.Alignment.BASELINE)
														.addComponent(jButton4)
														.addComponent(jButton6))
										.addContainerGap()));

		javax.swing.GroupLayout vakVensterLayout = new javax.swing.GroupLayout(
				vakVenster.getContentPane());
		vakVenster.getContentPane().setLayout(vakVensterLayout);
		vakVensterLayout.setHorizontalGroup(vakVensterLayout
				.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
				.addGroup(
						vakVensterLayout.createSequentialGroup()
								.addContainerGap().addComponent(jPanel11,
										javax.swing.GroupLayout.PREFERRED_SIZE,
										476,
										javax.swing.GroupLayout.PREFERRED_SIZE)
								.addContainerGap(
										javax.swing.GroupLayout.DEFAULT_SIZE,
										Short.MAX_VALUE)));
		vakVensterLayout.setVerticalGroup(vakVensterLayout.createParallelGroup(
				javax.swing.GroupLayout.Alignment.LEADING).addGroup(
				vakVensterLayout.createSequentialGroup().addContainerGap()
						.addComponent(jPanel11,
								javax.swing.GroupLayout.PREFERRED_SIZE,
								javax.swing.GroupLayout.DEFAULT_SIZE,
								javax.swing.GroupLayout.PREFERRED_SIZE)
						.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE,
								Short.MAX_VALUE)));

		contactVenster.setTitle("Contact");
		contactVenster.addWindowListener(new java.awt.event.WindowAdapter() {
			public void windowActivated(java.awt.event.WindowEvent evt) {
				contactVensterWindowActivated(evt);
			}
		});

		jPanel12.setBorder(new javax.swing.border.SoftBevelBorder(
				javax.swing.border.BevelBorder.RAISED));

		jLabel21.setFont(new java.awt.Font("Arial", 0, 14));
		jLabel21.setText("Naam:");

		jTextField6.addActionListener(new java.awt.event.ActionListener() {
			public void actionPerformed(java.awt.event.ActionEvent evt) {
				jTextField6ActionPerformed(evt);
			}
		});

		jLabel22.setFont(new java.awt.Font("Arial", 0, 14));
		jLabel22.setText("Voornaam:");

		jLabel23.setFont(new java.awt.Font("Arial", 0, 14));
		jLabel23.setText("E-mail");

		jLabel24.setFont(new java.awt.Font("Arial", 0, 14));
		jLabel24.setText("Meer informatie:");

		jComboBox3.setModel(new javax.swing.DefaultComboBoxModel(new String[] {
				"Professor/Assistent", "Student", "Gewone Contactpersoon" }));
		jComboBox3.addActionListener(new java.awt.event.ActionListener() {
			public void actionPerformed(java.awt.event.ActionEvent evt) {
				jComboBox3ActionPerformed(evt);
			}
		});

		jLabel25.setFont(new java.awt.Font("Arial", 0, 14));
		jLabel25.setText("Type contactpersoon:");

		jLabel26.setFont(new java.awt.Font("Arial", 0, 14));
		jLabel26.setText("Alternatieve e-mail:");

		jLabel27.setFont(new java.awt.Font("Arial", 0, 14));
		jLabel27.setText("Kantoor:");

		jTextField22.addActionListener(new java.awt.event.ActionListener() {
			public void actionPerformed(java.awt.event.ActionEvent evt) {
				jTextField22ActionPerformed(evt);
			}
		});

		jButton9.setText("Annuleren");
		jButton9.addActionListener(new java.awt.event.ActionListener() {
			public void actionPerformed(java.awt.event.ActionEvent evt) {
				jButton9ActionPerformed(evt);
			}
		});

		jButton10.setText("Opslaan");
		jButton10.addActionListener(new java.awt.event.ActionListener() {
			public void actionPerformed(java.awt.event.ActionEvent evt) {
				jButton10ActionPerformed(evt);
			}
		});

		jLabel28.setFont(new java.awt.Font("Arial", 0, 14));
		jLabel28.setText("TelefoonNummer:");

		jLabel29.setFont(new java.awt.Font("Arial", 0, 14));
		jLabel29.setText("Titel:");

		jTextField23.addActionListener(new java.awt.event.ActionListener() {
			public void actionPerformed(java.awt.event.ActionEvent evt) {
				jTextField23ActionPerformed(evt);
			}
		});

		jComboBox4.setModel(new javax.swing.DefaultComboBoxModel(new String[] {
				"Geen", "Prof.", "Dr.", "Ir.", "Prof. Dr.", "Prof. Ir.",
				"Dr. Ir.", "Prof. Dr. Ir." }));
		jComboBox4.addActionListener(new java.awt.event.ActionListener() {
			public void actionPerformed(java.awt.event.ActionEvent evt) {
				jComboBox4ActionPerformed(evt);
			}
		});

		jScrollPane28.setViewportView(jList9);

		jLabel56.setFont(new java.awt.Font("Arial", 0, 14));
		jLabel56.setText("jLabel56");

		jList10.setModel(new javax.swing.AbstractListModel() {
			String[] strings = { "Item 1", "Item 2", "Item 3", "Item 4",
					"Item 5" };

			public int getSize() {
				return strings.length;
			}

			public Object getElementAt(int i) {
				return strings[i];
			}
		});
		jList10
				.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);
		jScrollPane29.setViewportView(jList10);

		jButton19.setText("Voeg toe");
		jButton19.addActionListener(new java.awt.event.ActionListener() {
			public void actionPerformed(java.awt.event.ActionEvent evt) {
				jButton19ActionPerformed(evt);
			}
		});

		jButton20.setText("Verwijder");
		jButton20.addActionListener(new java.awt.event.ActionListener() {
			public void actionPerformed(java.awt.event.ActionEvent evt) {
				jButton20ActionPerformed(evt);
			}
		});

		jLabel57.setFont(new java.awt.Font("Arial", 0, 14));
		jLabel57.setText("jLabel57");

		javax.swing.GroupLayout jPanel12Layout = new javax.swing.GroupLayout(
				jPanel12);
		jPanel12.setLayout(jPanel12Layout);
		jPanel12Layout
				.setHorizontalGroup(jPanel12Layout
						.createParallelGroup(
								javax.swing.GroupLayout.Alignment.LEADING)
						.addGroup(
								jPanel12Layout
										.createSequentialGroup()
										.addContainerGap()
										.addGroup(
												jPanel12Layout
														.createParallelGroup(
																javax.swing.GroupLayout.Alignment.LEADING)
														.addComponent(
																jLabel27,
																javax.swing.GroupLayout.PREFERRED_SIZE,
																139,
																javax.swing.GroupLayout.PREFERRED_SIZE)
														.addGroup(
																jPanel12Layout
																		.createSequentialGroup()
																		.addGroup(
																				jPanel12Layout
																						.createParallelGroup(
																								javax.swing.GroupLayout.Alignment.LEADING)
																						.addComponent(
																								jLabel29,
																								javax.swing.GroupLayout.PREFERRED_SIZE,
																								128,
																								javax.swing.GroupLayout.PREFERRED_SIZE)
																						.addComponent(
																								jLabel25,
																								javax.swing.GroupLayout.PREFERRED_SIZE,
																								153,
																								javax.swing.GroupLayout.PREFERRED_SIZE)
																						.addGroup(
																								jPanel12Layout
																										.createSequentialGroup()
																										.addComponent(
																												jButton10)
																										.addPreferredGap(
																												javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
																										.addComponent(
																												jButton9)))
																		.addPreferredGap(
																				javax.swing.LayoutStyle.ComponentPlacement.RELATED)
																		.addGroup(
																				jPanel12Layout
																						.createParallelGroup(
																								javax.swing.GroupLayout.Alignment.LEADING)
																						.addGroup(
																								jPanel12Layout
																										.createSequentialGroup()
																										.addGroup(
																												jPanel12Layout
																														.createParallelGroup(
																																javax.swing.GroupLayout.Alignment.TRAILING)
																														.addComponent(
																																jTextField22,
																																javax.swing.GroupLayout.Alignment.LEADING,
																																javax.swing.GroupLayout.DEFAULT_SIZE,
																																607,
																																Short.MAX_VALUE)
																														.addGroup(
																																jPanel12Layout
																																		.createSequentialGroup()
																																		.addGroup(
																																				jPanel12Layout
																																						.createParallelGroup(
																																								javax.swing.GroupLayout.Alignment.LEADING)
																																						.addGroup(
																																								jPanel12Layout
																																										.createSequentialGroup()
																																										.addComponent(
																																												jScrollPane28,
																																												javax.swing.GroupLayout.PREFERRED_SIZE,
																																												209,
																																												javax.swing.GroupLayout.PREFERRED_SIZE)
																																										.addPreferredGap(
																																												javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
																																										.addGroup(
																																												jPanel12Layout
																																														.createParallelGroup(
																																																javax.swing.GroupLayout.Alignment.LEADING)
																																														.addComponent(
																																																jButton19)
																																														.addComponent(
																																																jButton20)))
																																						.addComponent(
																																								jLabel56,
																																								javax.swing.GroupLayout.PREFERRED_SIZE,
																																								170,
																																								javax.swing.GroupLayout.PREFERRED_SIZE))
																																		.addPreferredGap(
																																				javax.swing.LayoutStyle.ComponentPlacement.RELATED)
																																		.addGroup(
																																				jPanel12Layout
																																						.createParallelGroup(
																																								javax.swing.GroupLayout.Alignment.LEADING)
																																						.addComponent(
																																								jLabel57,
																																								javax.swing.GroupLayout.PREFERRED_SIZE,
																																								241,
																																								javax.swing.GroupLayout.PREFERRED_SIZE)
																																						.addComponent(
																																								jScrollPane29,
																																								javax.swing.GroupLayout.PREFERRED_SIZE,
																																								288,
																																								javax.swing.GroupLayout.PREFERRED_SIZE))))
																										.addGap(
																												66,
																												66,
																												66))
																						.addGroup(
																								jPanel12Layout
																										.createSequentialGroup()
																										.addComponent(
																												jComboBox3,
																												javax.swing.GroupLayout.PREFERRED_SIZE,
																												182,
																												javax.swing.GroupLayout.PREFERRED_SIZE)
																										.addContainerGap())
																						.addGroup(
																								jPanel12Layout
																										.createSequentialGroup()
																										.addComponent(
																												jComboBox4,
																												javax.swing.GroupLayout.PREFERRED_SIZE,
																												187,
																												javax.swing.GroupLayout.PREFERRED_SIZE)
																										.addContainerGap(
																												486,
																												Short.MAX_VALUE))))
														.addGroup(
																javax.swing.GroupLayout.Alignment.TRAILING,
																jPanel12Layout
																		.createSequentialGroup()
																		.addGroup(
																				jPanel12Layout
																						.createParallelGroup(
																								javax.swing.GroupLayout.Alignment.LEADING)
																						.addGroup(
																								jPanel12Layout
																										.createParallelGroup(
																												javax.swing.GroupLayout.Alignment.LEADING)
																										.addGroup(
																												jPanel12Layout
																														.createSequentialGroup()
																														.addComponent(
																																jLabel26,
																																javax.swing.GroupLayout.DEFAULT_SIZE,
																																136,
																																Short.MAX_VALUE)
																														.addGap(
																																46,
																																46,
																																46))
																										.addGroup(
																												jPanel12Layout
																														.createSequentialGroup()
																														.addComponent(
																																jLabel24,
																																javax.swing.GroupLayout.DEFAULT_SIZE,
																																162,
																																Short.MAX_VALUE)
																														.addGap(
																																20,
																																20,
																																20))
																										.addGroup(
																												jPanel12Layout
																														.createSequentialGroup()
																														.addComponent(
																																jLabel28,
																																javax.swing.GroupLayout.DEFAULT_SIZE,
																																146,
																																Short.MAX_VALUE)
																														.addGap(
																																36,
																																36,
																																36)))
																						.addGroup(
																								jPanel12Layout
																										.createSequentialGroup()
																										.addGroup(
																												jPanel12Layout
																														.createParallelGroup(
																																javax.swing.GroupLayout.Alignment.LEADING)
																														.addGroup(
																																jPanel12Layout
																																		.createParallelGroup(
																																				javax.swing.GroupLayout.Alignment.TRAILING,
																																				false)
																																		.addComponent(
																																				jLabel23,
																																				javax.swing.GroupLayout.Alignment.LEADING,
																																				javax.swing.GroupLayout.DEFAULT_SIZE,
																																				javax.swing.GroupLayout.DEFAULT_SIZE,
																																				Short.MAX_VALUE)
																																		.addComponent(
																																				jLabel22,
																																				javax.swing.GroupLayout.Alignment.LEADING,
																																				javax.swing.GroupLayout.DEFAULT_SIZE,
																																				126,
																																				Short.MAX_VALUE))
																														.addComponent(
																																jLabel21,
																																javax.swing.GroupLayout.PREFERRED_SIZE,
																																143,
																																javax.swing.GroupLayout.PREFERRED_SIZE))
																										.addPreferredGap(
																												javax.swing.LayoutStyle.ComponentPlacement.RELATED)))
																		.addGroup(
																				jPanel12Layout
																						.createParallelGroup(
																								javax.swing.GroupLayout.Alignment.TRAILING)
																						.addComponent(
																								jTextField18,
																								javax.swing.GroupLayout.Alignment.LEADING,
																								javax.swing.GroupLayout.DEFAULT_SIZE,
																								584,
																								Short.MAX_VALUE)
																						.addComponent(
																								jTextField6,
																								javax.swing.GroupLayout.Alignment.LEADING,
																								javax.swing.GroupLayout.DEFAULT_SIZE,
																								584,
																								Short.MAX_VALUE)
																						.addComponent(
																								jTextField19,
																								javax.swing.GroupLayout.DEFAULT_SIZE,
																								584,
																								Short.MAX_VALUE)
																						.addComponent(
																								jTextField23,
																								javax.swing.GroupLayout.DEFAULT_SIZE,
																								584,
																								Short.MAX_VALUE)
																						.addComponent(
																								jTextField20,
																								javax.swing.GroupLayout.DEFAULT_SIZE,
																								584,
																								Short.MAX_VALUE)
																						.addComponent(
																								jTextField21,
																								javax.swing.GroupLayout.DEFAULT_SIZE,
																								584,
																								Short.MAX_VALUE))
																		.addGap(
																				66,
																				66,
																				66)))));
		jPanel12Layout
				.setVerticalGroup(jPanel12Layout
						.createParallelGroup(
								javax.swing.GroupLayout.Alignment.LEADING)
						.addGroup(
								jPanel12Layout
										.createSequentialGroup()
										.addContainerGap()
										.addGroup(
												jPanel12Layout
														.createParallelGroup(
																javax.swing.GroupLayout.Alignment.BASELINE)
														.addComponent(jLabel21)
														.addComponent(
																jTextField6,
																javax.swing.GroupLayout.PREFERRED_SIZE,
																javax.swing.GroupLayout.DEFAULT_SIZE,
																javax.swing.GroupLayout.PREFERRED_SIZE))
										.addGap(9, 9, 9)
										.addGroup(
												jPanel12Layout
														.createParallelGroup(
																javax.swing.GroupLayout.Alignment.BASELINE)
														.addComponent(jLabel22)
														.addComponent(
																jTextField18,
																javax.swing.GroupLayout.PREFERRED_SIZE,
																javax.swing.GroupLayout.DEFAULT_SIZE,
																javax.swing.GroupLayout.PREFERRED_SIZE))
										.addPreferredGap(
												javax.swing.LayoutStyle.ComponentPlacement.RELATED)
										.addGroup(
												jPanel12Layout
														.createParallelGroup(
																javax.swing.GroupLayout.Alignment.BASELINE)
														.addComponent(
																jLabel23,
																javax.swing.GroupLayout.DEFAULT_SIZE,
																23,
																Short.MAX_VALUE)
														.addComponent(
																jTextField19,
																javax.swing.GroupLayout.DEFAULT_SIZE,
																23,
																Short.MAX_VALUE))
										.addPreferredGap(
												javax.swing.LayoutStyle.ComponentPlacement.RELATED)
										.addGroup(
												jPanel12Layout
														.createParallelGroup(
																javax.swing.GroupLayout.Alignment.BASELINE)
														.addComponent(
																jLabel28,
																javax.swing.GroupLayout.DEFAULT_SIZE,
																20,
																Short.MAX_VALUE)
														.addComponent(
																jTextField23,
																javax.swing.GroupLayout.PREFERRED_SIZE,
																javax.swing.GroupLayout.DEFAULT_SIZE,
																javax.swing.GroupLayout.PREFERRED_SIZE))
										.addPreferredGap(
												javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
										.addGroup(
												jPanel12Layout
														.createParallelGroup(
																javax.swing.GroupLayout.Alignment.BASELINE)
														.addComponent(
																jTextField20,
																javax.swing.GroupLayout.PREFERRED_SIZE,
																javax.swing.GroupLayout.DEFAULT_SIZE,
																javax.swing.GroupLayout.PREFERRED_SIZE)
														.addComponent(
																jLabel24,
																javax.swing.GroupLayout.PREFERRED_SIZE,
																17,
																javax.swing.GroupLayout.PREFERRED_SIZE))
										.addPreferredGap(
												javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
										.addGroup(
												jPanel12Layout
														.createParallelGroup(
																javax.swing.GroupLayout.Alignment.BASELINE)
														.addComponent(
																jLabel26,
																javax.swing.GroupLayout.DEFAULT_SIZE,
																20,
																Short.MAX_VALUE)
														.addComponent(
																jTextField21,
																javax.swing.GroupLayout.PREFERRED_SIZE,
																javax.swing.GroupLayout.DEFAULT_SIZE,
																javax.swing.GroupLayout.PREFERRED_SIZE))
										.addPreferredGap(
												javax.swing.LayoutStyle.ComponentPlacement.RELATED)
										.addGroup(
												jPanel12Layout
														.createParallelGroup(
																javax.swing.GroupLayout.Alignment.BASELINE)
														.addComponent(
																jLabel27,
																javax.swing.GroupLayout.DEFAULT_SIZE,
																20,
																Short.MAX_VALUE)
														.addComponent(
																jTextField22,
																javax.swing.GroupLayout.PREFERRED_SIZE,
																javax.swing.GroupLayout.DEFAULT_SIZE,
																javax.swing.GroupLayout.PREFERRED_SIZE))
										.addPreferredGap(
												javax.swing.LayoutStyle.ComponentPlacement.RELATED)
										.addGroup(
												jPanel12Layout
														.createParallelGroup(
																javax.swing.GroupLayout.Alignment.BASELINE)
														.addComponent(
																jLabel29,
																javax.swing.GroupLayout.DEFAULT_SIZE,
																25,
																Short.MAX_VALUE)
														.addComponent(
																jComboBox4,
																javax.swing.GroupLayout.PREFERRED_SIZE,
																javax.swing.GroupLayout.DEFAULT_SIZE,
																javax.swing.GroupLayout.PREFERRED_SIZE))
										.addGap(7, 7, 7)
										.addGroup(
												jPanel12Layout
														.createParallelGroup(
																javax.swing.GroupLayout.Alignment.BASELINE)
														.addComponent(jLabel25)
														.addComponent(
																jComboBox3,
																javax.swing.GroupLayout.PREFERRED_SIZE,
																javax.swing.GroupLayout.DEFAULT_SIZE,
																javax.swing.GroupLayout.PREFERRED_SIZE))
										.addPreferredGap(
												javax.swing.LayoutStyle.ComponentPlacement.RELATED)
										.addGroup(
												jPanel12Layout
														.createParallelGroup(
																javax.swing.GroupLayout.Alignment.LEADING)
														.addGroup(
																javax.swing.GroupLayout.Alignment.TRAILING,
																jPanel12Layout
																		.createSequentialGroup()
																		.addComponent(
																				jButton19)
																		.addPreferredGap(
																				javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
																		.addComponent(
																				jButton20)
																		.addGap(
																				52,
																				52,
																				52))
														.addGroup(
																javax.swing.GroupLayout.Alignment.TRAILING,
																jPanel12Layout
																		.createSequentialGroup()
																		.addGroup(
																				jPanel12Layout
																						.createParallelGroup(
																								javax.swing.GroupLayout.Alignment.BASELINE)
																						.addComponent(
																								jLabel56)
																						.addComponent(
																								jLabel57))
																		.addPreferredGap(
																				javax.swing.LayoutStyle.ComponentPlacement.RELATED)
																		.addGroup(
																				jPanel12Layout
																						.createParallelGroup(
																								javax.swing.GroupLayout.Alignment.TRAILING,
																								false)
																						.addComponent(
																								jScrollPane29,
																								0,
																								0,
																								Short.MAX_VALUE)
																						.addComponent(
																								jScrollPane28,
																								javax.swing.GroupLayout.DEFAULT_SIZE,
																								88,
																								Short.MAX_VALUE))
																		.addPreferredGap(
																				javax.swing.LayoutStyle.ComponentPlacement.RELATED)
																		.addGroup(
																				jPanel12Layout
																						.createParallelGroup(
																								javax.swing.GroupLayout.Alignment.BASELINE)
																						.addComponent(
																								jButton10)
																						.addComponent(
																								jButton9))
																		.addContainerGap()))));

		javax.swing.GroupLayout contactVensterLayout = new javax.swing.GroupLayout(
				contactVenster.getContentPane());
		contactVenster.getContentPane().setLayout(contactVensterLayout);
		contactVensterLayout.setHorizontalGroup(contactVensterLayout
				.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
				.addGroup(
						contactVensterLayout.createSequentialGroup()
								.addContainerGap().addComponent(jPanel12,
										javax.swing.GroupLayout.PREFERRED_SIZE,
										javax.swing.GroupLayout.DEFAULT_SIZE,
										javax.swing.GroupLayout.PREFERRED_SIZE)
								.addContainerGap(
										javax.swing.GroupLayout.DEFAULT_SIZE,
										Short.MAX_VALUE)));
		contactVensterLayout.setVerticalGroup(contactVensterLayout
				.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
				.addGroup(
						contactVensterLayout.createSequentialGroup()
								.addContainerGap().addComponent(jPanel12,
										javax.swing.GroupLayout.DEFAULT_SIZE,
										javax.swing.GroupLayout.DEFAULT_SIZE,
										Short.MAX_VALUE).addContainerGap()));

		gebeurtenisVenster.setTitle("Gebeurtenis");
		gebeurtenisVenster.setCursor(new java.awt.Cursor(
				java.awt.Cursor.DEFAULT_CURSOR));

		jPanel9.setBorder(new javax.swing.border.SoftBevelBorder(
				javax.swing.border.BevelBorder.RAISED));

		jLabel9.setFont(new java.awt.Font("Arial", 0, 14)); // NOI18N
		jLabel9.setText("Beschrijving:");

		jScrollPane18.setViewportView(jTextPane5);

		jLabel10.setFont(new java.awt.Font("Arial", 0, 14));
		jLabel10.setText("Start (jjjj-mm-dd ; uu:mm) :");

		jLabel11.setText("-");

		jLabel32.setFont(new java.awt.Font("Arial", 0, 14));
		jLabel32.setText("Einde (jjjj-mm-dd ; uu:mm) (optioneel) :");

		jLabel37.setFont(new java.awt.Font("Arial", 0, 14));
		jLabel37.setText("Waarschuwing (jjjj-mm-dd ; uu:mm) (optioneel) :");

		jLabel41.setFont(new java.awt.Font("Arial", 0, 14));
		jLabel41.setText("Extra informatie:");

		jTextPane6.setMargin(new java.awt.Insets(5, 5, 5, 5));
		jScrollPane19.setViewportView(jTextPane6);

		buttonGroup2.add(jRadioButton5);
		jRadioButton5.setFont(new java.awt.Font("Arial", 0, 14));
		jRadioButton5.setSelected(true);
		jRadioButton5.setText("Gebeurtenis");
		jRadioButton5.addActionListener(new java.awt.event.ActionListener() {
			public void actionPerformed(java.awt.event.ActionEvent evt) {
				jRadioButton5ActionPerformed(evt);
			}
		});

		buttonGroup2.add(jRadioButton6);
		jRadioButton6.setFont(new java.awt.Font("Arial", 0, 14));
		jRadioButton6.setText("Les");
		jRadioButton6.addActionListener(new java.awt.event.ActionListener() {
			public void actionPerformed(java.awt.event.ActionEvent evt) {
				jRadioButton6ActionPerformed(evt);
			}
		});

		buttonGroup2.add(jRadioButton7);
		jRadioButton7.setFont(new java.awt.Font("Arial", 0, 14)); // NOI18N
		jRadioButton7.setText("Deadline");
		jRadioButton7.addActionListener(new java.awt.event.ActionListener() {
			public void actionPerformed(java.awt.event.ActionEvent evt) {
				jRadioButton7ActionPerformed(evt);
			}
		});

		jPanel13.setBorder(javax.swing.BorderFactory.createEtchedBorder());

		jLabel42.setFont(new java.awt.Font("Arial", 0, 14));
		jLabel42.setText("Lokaal:");

		jLabel43.setFont(new java.awt.Font("Arial", 0, 14));
		jLabel43.setText("Dag:");

		jComboBox5.setModel(new javax.swing.DefaultComboBoxModel(new String[] {
				"Maandag", "Dinsdag", "Woensdag", "Donderdag", "Vrijdag",
				"Zaterdag", "Zondag" }));

		jLabel44.setFont(new java.awt.Font("Arial", 0, 14)); // NOI18N
		jLabel44.setText("Aantal weken:");

		jLabel62.setFont(new java.awt.Font("Arial", 0, 14));
		jLabel62.setText("Taak");

		jLabel68.setFont(new java.awt.Font("Arial", 0, 14)); // NOI18N
		jLabel68.setText("Vak");

		javax.swing.GroupLayout jPanel13Layout = new javax.swing.GroupLayout(
				jPanel13);
		jPanel13.setLayout(jPanel13Layout);
		jPanel13Layout
				.setHorizontalGroup(jPanel13Layout
						.createParallelGroup(
								javax.swing.GroupLayout.Alignment.LEADING)
						.addGroup(
								jPanel13Layout
										.createSequentialGroup()
										.addContainerGap()
										.addGroup(
												jPanel13Layout
														.createParallelGroup(
																javax.swing.GroupLayout.Alignment.LEADING)
														.addComponent(
																jComboBox11,
																javax.swing.GroupLayout.PREFERRED_SIZE,
																325,
																javax.swing.GroupLayout.PREFERRED_SIZE)
														.addGroup(
																jPanel13Layout
																		.createSequentialGroup()
																		.addGroup(
																				jPanel13Layout
																						.createParallelGroup(
																								javax.swing.GroupLayout.Alignment.TRAILING)
																						.addGroup(
																								jPanel13Layout
																										.createSequentialGroup()
																										.addComponent(
																												jLabel62,
																												javax.swing.GroupLayout.DEFAULT_SIZE,
																												45,
																												Short.MAX_VALUE)
																										.addGap(
																												1,
																												1,
																												1))
																						.addGroup(
																								javax.swing.GroupLayout.Alignment.LEADING,
																								jPanel13Layout
																										.createParallelGroup(
																												javax.swing.GroupLayout.Alignment.LEADING,
																												false)
																										.addComponent(
																												jTextField33)
																										.addComponent(
																												jLabel42,
																												javax.swing.GroupLayout.DEFAULT_SIZE,
																												javax.swing.GroupLayout.DEFAULT_SIZE,
																												Short.MAX_VALUE)))
																		.addGap(
																				18,
																				18,
																				18)
																		.addGroup(
																				jPanel13Layout
																						.createParallelGroup(
																								javax.swing.GroupLayout.Alignment.LEADING)
																						.addComponent(
																								jComboBox5,
																								javax.swing.GroupLayout.PREFERRED_SIZE,
																								javax.swing.GroupLayout.DEFAULT_SIZE,
																								javax.swing.GroupLayout.PREFERRED_SIZE)
																						.addComponent(
																								jLabel43))
																		.addGroup(
																				jPanel13Layout
																						.createParallelGroup(
																								javax.swing.GroupLayout.Alignment.LEADING)
																						.addGroup(
																								jPanel13Layout
																										.createSequentialGroup()
																										.addGap(
																												17,
																												17,
																												17)
																										.addComponent(
																												jLabel44))
																						.addGroup(
																								jPanel13Layout
																										.createSequentialGroup()
																										.addGap(
																												18,
																												18,
																												18)
																										.addComponent(
																												jTextField34,
																												javax.swing.GroupLayout.PREFERRED_SIZE,
																												45,
																												javax.swing.GroupLayout.PREFERRED_SIZE)))
																		.addPreferredGap(
																				javax.swing.LayoutStyle.ComponentPlacement.RELATED)
																		.addGroup(
																				jPanel13Layout
																						.createParallelGroup(
																								javax.swing.GroupLayout.Alignment.LEADING)
																						.addComponent(
																								jLabel68)
																						.addComponent(
																								jComboBox37,
																								javax.swing.GroupLayout.PREFERRED_SIZE,
																								134,
																								javax.swing.GroupLayout.PREFERRED_SIZE))
																		.addGap(
																				31,
																				31,
																				31)))
										.addContainerGap()));

		jPanel13Layout.linkSize(javax.swing.SwingConstants.HORIZONTAL,
				new java.awt.Component[] { jTextField33, jTextField34 });

		jPanel13Layout
				.setVerticalGroup(jPanel13Layout
						.createParallelGroup(
								javax.swing.GroupLayout.Alignment.LEADING)
						.addGroup(
								jPanel13Layout
										.createSequentialGroup()
										.addContainerGap()
										.addGroup(
												jPanel13Layout
														.createParallelGroup(
																javax.swing.GroupLayout.Alignment.BASELINE)
														.addComponent(jLabel42)
														.addComponent(jLabel43)
														.addComponent(jLabel44)
														.addComponent(jLabel68))
										.addPreferredGap(
												javax.swing.LayoutStyle.ComponentPlacement.RELATED)
										.addGroup(
												jPanel13Layout
														.createParallelGroup(
																javax.swing.GroupLayout.Alignment.BASELINE)
														.addComponent(
																jTextField33,
																javax.swing.GroupLayout.PREFERRED_SIZE,
																javax.swing.GroupLayout.DEFAULT_SIZE,
																javax.swing.GroupLayout.PREFERRED_SIZE)
														.addComponent(
																jComboBox5,
																javax.swing.GroupLayout.PREFERRED_SIZE,
																javax.swing.GroupLayout.DEFAULT_SIZE,
																javax.swing.GroupLayout.PREFERRED_SIZE)
														.addComponent(
																jTextField34,
																javax.swing.GroupLayout.PREFERRED_SIZE,
																javax.swing.GroupLayout.DEFAULT_SIZE,
																javax.swing.GroupLayout.PREFERRED_SIZE)
														.addComponent(
																jComboBox37,
																javax.swing.GroupLayout.PREFERRED_SIZE,
																javax.swing.GroupLayout.DEFAULT_SIZE,
																javax.swing.GroupLayout.PREFERRED_SIZE))
										.addPreferredGap(
												javax.swing.LayoutStyle.ComponentPlacement.RELATED)
										.addComponent(jLabel62)
										.addPreferredGap(
												javax.swing.LayoutStyle.ComponentPlacement.RELATED)
										.addComponent(
												jComboBox11,
												javax.swing.GroupLayout.PREFERRED_SIZE,
												javax.swing.GroupLayout.DEFAULT_SIZE,
												javax.swing.GroupLayout.PREFERRED_SIZE)
										.addContainerGap(
												javax.swing.GroupLayout.DEFAULT_SIZE,
												Short.MAX_VALUE)));

		jPanel13Layout.linkSize(javax.swing.SwingConstants.VERTICAL,
				new java.awt.Component[] { jTextField33, jTextField34 });

		jButton23.setText("Opslaan");
		jButton23.addActionListener(new java.awt.event.ActionListener() {
			public void actionPerformed(java.awt.event.ActionEvent evt) {
				jButton23ActionPerformed(evt);
			}
		});

		jButton24.setText("Annuleren");
		jButton24.addActionListener(new java.awt.event.ActionListener() {
			public void actionPerformed(java.awt.event.ActionEvent evt) {
				jButton24ActionPerformed(evt);
			}
		});

		jLabel30.setText("-");

		jLabel31.setText(":");

		jLabel34.setText("-");

		jLabel35.setText("-");

		jLabel36.setText(":");

		jLabel38.setText("-");

		jLabel39.setText("-");

		jLabel40.setText(":");

		javax.swing.GroupLayout jPanel9Layout = new javax.swing.GroupLayout(
				jPanel9);
		jPanel9.setLayout(jPanel9Layout);
		jPanel9Layout
				.setHorizontalGroup(jPanel9Layout
						.createParallelGroup(
								javax.swing.GroupLayout.Alignment.LEADING)
						.addGroup(
								jPanel9Layout
										.createSequentialGroup()
										.addContainerGap()
										.addGroup(
												jPanel9Layout
														.createParallelGroup(
																javax.swing.GroupLayout.Alignment.LEADING)
														.addGroup(
																jPanel9Layout
																		.createSequentialGroup()
																		.addComponent(
																				jScrollPane18,
																				javax.swing.GroupLayout.PREFERRED_SIZE,
																				248,
																				javax.swing.GroupLayout.PREFERRED_SIZE)
																		.addContainerGap())
														.addGroup(
																jPanel9Layout
																		.createSequentialGroup()
																		.addGroup(
																				jPanel9Layout
																						.createParallelGroup(
																								javax.swing.GroupLayout.Alignment.LEADING)
																						.addGroup(
																								jPanel9Layout
																										.createSequentialGroup()
																										.addComponent(
																												jLabel9)
																										.addGap(
																												315,
																												315,
																												315))
																						.addGroup(
																								jPanel9Layout
																										.createSequentialGroup()
																										.addGroup(
																												jPanel9Layout
																														.createParallelGroup(
																																javax.swing.GroupLayout.Alignment.LEADING)
																														.addGroup(
																																jPanel9Layout
																																		.createSequentialGroup()
																																		.addGroup(
																																				jPanel9Layout
																																						.createParallelGroup(
																																								javax.swing.GroupLayout.Alignment.LEADING)
																																						.addComponent(
																																								jComboBox12,
																																								javax.swing.GroupLayout.PREFERRED_SIZE,
																																								javax.swing.GroupLayout.DEFAULT_SIZE,
																																								javax.swing.GroupLayout.PREFERRED_SIZE)
																																						.addComponent(
																																								jComboBox17,
																																								javax.swing.GroupLayout.PREFERRED_SIZE,
																																								javax.swing.GroupLayout.DEFAULT_SIZE,
																																								javax.swing.GroupLayout.PREFERRED_SIZE)
																																						.addComponent(
																																								jComboBox22,
																																								javax.swing.GroupLayout.PREFERRED_SIZE,
																																								javax.swing.GroupLayout.DEFAULT_SIZE,
																																								javax.swing.GroupLayout.PREFERRED_SIZE))
																																		.addPreferredGap(
																																				javax.swing.LayoutStyle.ComponentPlacement.RELATED)
																																		.addGroup(
																																				jPanel9Layout
																																						.createParallelGroup(
																																								javax.swing.GroupLayout.Alignment.LEADING)
																																						.addComponent(
																																								jLabel11,
																																								javax.swing.GroupLayout.PREFERRED_SIZE,
																																								4,
																																								javax.swing.GroupLayout.PREFERRED_SIZE)
																																						.addComponent(
																																								jLabel34,
																																								javax.swing.GroupLayout.PREFERRED_SIZE,
																																								4,
																																								javax.swing.GroupLayout.PREFERRED_SIZE)
																																						.addComponent(
																																								jLabel38,
																																								javax.swing.GroupLayout.PREFERRED_SIZE,
																																								4,
																																								javax.swing.GroupLayout.PREFERRED_SIZE))
																																		.addPreferredGap(
																																				javax.swing.LayoutStyle.ComponentPlacement.RELATED)
																																		.addGroup(
																																				jPanel9Layout
																																						.createParallelGroup(
																																								javax.swing.GroupLayout.Alignment.LEADING)
																																						.addComponent(
																																								jComboBox13,
																																								javax.swing.GroupLayout.PREFERRED_SIZE,
																																								javax.swing.GroupLayout.DEFAULT_SIZE,
																																								javax.swing.GroupLayout.PREFERRED_SIZE)
																																						.addComponent(
																																								jComboBox18,
																																								javax.swing.GroupLayout.PREFERRED_SIZE,
																																								javax.swing.GroupLayout.DEFAULT_SIZE,
																																								javax.swing.GroupLayout.PREFERRED_SIZE)
																																						.addComponent(
																																								jComboBox23,
																																								javax.swing.GroupLayout.PREFERRED_SIZE,
																																								javax.swing.GroupLayout.DEFAULT_SIZE,
																																								javax.swing.GroupLayout.PREFERRED_SIZE))
																																		.addPreferredGap(
																																				javax.swing.LayoutStyle.ComponentPlacement.RELATED)
																																		.addGroup(
																																				jPanel9Layout
																																						.createParallelGroup(
																																								javax.swing.GroupLayout.Alignment.LEADING)
																																						.addComponent(
																																								jLabel30)
																																						.addComponent(
																																								jLabel35)
																																						.addComponent(
																																								jLabel39))
																																		.addGap(
																																				2,
																																				2,
																																				2)
																																		.addGroup(
																																				jPanel9Layout
																																						.createParallelGroup(
																																								javax.swing.GroupLayout.Alignment.LEADING)
																																						.addComponent(
																																								jComboBox14,
																																								javax.swing.GroupLayout.PREFERRED_SIZE,
																																								javax.swing.GroupLayout.DEFAULT_SIZE,
																																								javax.swing.GroupLayout.PREFERRED_SIZE)
																																						.addComponent(
																																								jComboBox19,
																																								javax.swing.GroupLayout.PREFERRED_SIZE,
																																								javax.swing.GroupLayout.DEFAULT_SIZE,
																																								javax.swing.GroupLayout.PREFERRED_SIZE)
																																						.addComponent(
																																								jComboBox24,
																																								javax.swing.GroupLayout.PREFERRED_SIZE,
																																								javax.swing.GroupLayout.DEFAULT_SIZE,
																																								javax.swing.GroupLayout.PREFERRED_SIZE))
																																		.addGap(
																																				43,
																																				43,
																																				43)
																																		.addGroup(
																																				jPanel9Layout
																																						.createParallelGroup(
																																								javax.swing.GroupLayout.Alignment.LEADING)
																																						.addComponent(
																																								jComboBox15,
																																								javax.swing.GroupLayout.PREFERRED_SIZE,
																																								javax.swing.GroupLayout.DEFAULT_SIZE,
																																								javax.swing.GroupLayout.PREFERRED_SIZE)
																																						.addComponent(
																																								jComboBox20,
																																								javax.swing.GroupLayout.PREFERRED_SIZE,
																																								javax.swing.GroupLayout.DEFAULT_SIZE,
																																								javax.swing.GroupLayout.PREFERRED_SIZE)
																																						.addComponent(
																																								jComboBox25,
																																								javax.swing.GroupLayout.PREFERRED_SIZE,
																																								javax.swing.GroupLayout.DEFAULT_SIZE,
																																								javax.swing.GroupLayout.PREFERRED_SIZE))
																																		.addPreferredGap(
																																				javax.swing.LayoutStyle.ComponentPlacement.RELATED)
																																		.addGroup(
																																				jPanel9Layout
																																						.createParallelGroup(
																																								javax.swing.GroupLayout.Alignment.LEADING)
																																						.addComponent(
																																								jLabel31)
																																						.addComponent(
																																								jLabel36)
																																						.addComponent(
																																								jLabel40))
																																		.addPreferredGap(
																																				javax.swing.LayoutStyle.ComponentPlacement.RELATED)
																																		.addGroup(
																																				jPanel9Layout
																																						.createParallelGroup(
																																								javax.swing.GroupLayout.Alignment.LEADING)
																																						.addComponent(
																																								jComboBox26,
																																								javax.swing.GroupLayout.PREFERRED_SIZE,
																																								javax.swing.GroupLayout.DEFAULT_SIZE,
																																								javax.swing.GroupLayout.PREFERRED_SIZE)
																																						.addComponent(
																																								jComboBox21,
																																								javax.swing.GroupLayout.PREFERRED_SIZE,
																																								javax.swing.GroupLayout.DEFAULT_SIZE,
																																								javax.swing.GroupLayout.PREFERRED_SIZE)
																																						.addComponent(
																																								jComboBox16,
																																								javax.swing.GroupLayout.PREFERRED_SIZE,
																																								javax.swing.GroupLayout.DEFAULT_SIZE,
																																								javax.swing.GroupLayout.PREFERRED_SIZE))
																																		.addPreferredGap(
																																				javax.swing.LayoutStyle.ComponentPlacement.RELATED,
																																				293,
																																				javax.swing.GroupLayout.PREFERRED_SIZE))
																														.addGroup(
																																jPanel9Layout
																																		.createSequentialGroup()
																																		.addComponent(
																																				jButton23)
																																		.addPreferredGap(
																																				javax.swing.LayoutStyle.ComponentPlacement.RELATED)
																																		.addComponent(
																																				jButton24)
																																		.addPreferredGap(
																																				javax.swing.LayoutStyle.ComponentPlacement.RELATED,
																																				414,
																																				javax.swing.GroupLayout.PREFERRED_SIZE))
																														.addGroup(
																																jPanel9Layout
																																		.createSequentialGroup()
																																		.addGroup(
																																				jPanel9Layout
																																						.createParallelGroup(
																																								javax.swing.GroupLayout.Alignment.LEADING)
																																						.addComponent(
																																								jRadioButton5)
																																						.addComponent(
																																								jRadioButton6)
																																						.addComponent(
																																								jRadioButton7))
																																		.addGap(
																																				18,
																																				18,
																																				18)
																																		.addComponent(
																																				jPanel13,
																																				javax.swing.GroupLayout.DEFAULT_SIZE,
																																				javax.swing.GroupLayout.DEFAULT_SIZE,
																																				Short.MAX_VALUE))
																														.addGroup(
																																jPanel9Layout
																																		.createSequentialGroup()
																																		.addComponent(
																																				jLabel41)
																																		.addPreferredGap(
																																				javax.swing.LayoutStyle.ComponentPlacement.RELATED,
																																				458,
																																				javax.swing.GroupLayout.PREFERRED_SIZE))
																														.addGroup(
																																jPanel9Layout
																																		.createSequentialGroup()
																																		.addComponent(
																																				jLabel32)
																																		.addPreferredGap(
																																				javax.swing.LayoutStyle.ComponentPlacement.RELATED,
																																				316,
																																				javax.swing.GroupLayout.PREFERRED_SIZE))
																														.addGroup(
																																jPanel9Layout
																																		.createSequentialGroup()
																																		.addComponent(
																																				jLabel37)
																																		.addPreferredGap(
																																				javax.swing.LayoutStyle.ComponentPlacement.RELATED,
																																				260,
																																				javax.swing.GroupLayout.PREFERRED_SIZE))
																														.addGroup(
																																jPanel9Layout
																																		.createSequentialGroup()
																																		.addComponent(
																																				jLabel10)
																																		.addPreferredGap(
																																				javax.swing.LayoutStyle.ComponentPlacement.RELATED,
																																				394,
																																				javax.swing.GroupLayout.PREFERRED_SIZE))
																														.addComponent(
																																jScrollPane19,
																																javax.swing.GroupLayout.DEFAULT_SIZE,
																																560,
																																Short.MAX_VALUE))
																										.addPreferredGap(
																												javax.swing.LayoutStyle.ComponentPlacement.RELATED)))
																		.addComponent(
																				jLabel33)
																		.addGap(
																				376,
																				376,
																				376)))));

		jPanel9Layout.linkSize(javax.swing.SwingConstants.HORIZONTAL,
				new java.awt.Component[] { jComboBox13, jComboBox14 });

		jPanel9Layout
				.setVerticalGroup(jPanel9Layout
						.createParallelGroup(
								javax.swing.GroupLayout.Alignment.LEADING)
						.addGroup(
								jPanel9Layout
										.createSequentialGroup()
										.addGroup(
												jPanel9Layout
														.createParallelGroup(
																javax.swing.GroupLayout.Alignment.LEADING)
														.addGroup(
																jPanel9Layout
																		.createSequentialGroup()
																		.addGap(
																				131,
																				131,
																				131)
																		.addComponent(
																				jLabel33))
														.addGroup(
																jPanel9Layout
																		.createSequentialGroup()
																		.addContainerGap()
																		.addComponent(
																				jLabel9)
																		.addPreferredGap(
																				javax.swing.LayoutStyle.ComponentPlacement.RELATED)
																		.addComponent(
																				jScrollPane18,
																				javax.swing.GroupLayout.PREFERRED_SIZE,
																				javax.swing.GroupLayout.DEFAULT_SIZE,
																				javax.swing.GroupLayout.PREFERRED_SIZE)
																		.addPreferredGap(
																				javax.swing.LayoutStyle.ComponentPlacement.RELATED)
																		.addComponent(
																				jLabel10)
																		.addPreferredGap(
																				javax.swing.LayoutStyle.ComponentPlacement.RELATED)
																		.addGroup(
																				jPanel9Layout
																						.createParallelGroup(
																								javax.swing.GroupLayout.Alignment.BASELINE)
																						.addComponent(
																								jLabel11)
																						.addComponent(
																								jComboBox12,
																								javax.swing.GroupLayout.PREFERRED_SIZE,
																								javax.swing.GroupLayout.DEFAULT_SIZE,
																								javax.swing.GroupLayout.PREFERRED_SIZE)
																						.addComponent(
																								jComboBox13,
																								javax.swing.GroupLayout.PREFERRED_SIZE,
																								20,
																								javax.swing.GroupLayout.PREFERRED_SIZE)
																						.addComponent(
																								jLabel30)
																						.addComponent(
																								jComboBox14,
																								javax.swing.GroupLayout.PREFERRED_SIZE,
																								javax.swing.GroupLayout.DEFAULT_SIZE,
																								javax.swing.GroupLayout.PREFERRED_SIZE)
																						.addComponent(
																								jComboBox15,
																								javax.swing.GroupLayout.PREFERRED_SIZE,
																								javax.swing.GroupLayout.DEFAULT_SIZE,
																								javax.swing.GroupLayout.PREFERRED_SIZE)
																						.addComponent(
																								jLabel31)
																						.addComponent(
																								jComboBox16,
																								javax.swing.GroupLayout.PREFERRED_SIZE,
																								javax.swing.GroupLayout.DEFAULT_SIZE,
																								javax.swing.GroupLayout.PREFERRED_SIZE))
																		.addGap(
																				18,
																				18,
																				18)
																		.addComponent(
																				jLabel32)
																		.addPreferredGap(
																				javax.swing.LayoutStyle.ComponentPlacement.RELATED)
																		.addGroup(
																				jPanel9Layout
																						.createParallelGroup(
																								javax.swing.GroupLayout.Alignment.BASELINE)
																						.addComponent(
																								jLabel34)
																						.addComponent(
																								jComboBox17,
																								javax.swing.GroupLayout.PREFERRED_SIZE,
																								javax.swing.GroupLayout.DEFAULT_SIZE,
																								javax.swing.GroupLayout.PREFERRED_SIZE)
																						.addComponent(
																								jComboBox18,
																								javax.swing.GroupLayout.PREFERRED_SIZE,
																								20,
																								javax.swing.GroupLayout.PREFERRED_SIZE)
																						.addComponent(
																								jLabel35)
																						.addComponent(
																								jComboBox19,
																								javax.swing.GroupLayout.PREFERRED_SIZE,
																								javax.swing.GroupLayout.DEFAULT_SIZE,
																								javax.swing.GroupLayout.PREFERRED_SIZE)
																						.addComponent(
																								jComboBox20,
																								javax.swing.GroupLayout.PREFERRED_SIZE,
																								javax.swing.GroupLayout.DEFAULT_SIZE,
																								javax.swing.GroupLayout.PREFERRED_SIZE)
																						.addComponent(
																								jLabel36)
																						.addComponent(
																								jComboBox21,
																								javax.swing.GroupLayout.PREFERRED_SIZE,
																								javax.swing.GroupLayout.DEFAULT_SIZE,
																								javax.swing.GroupLayout.PREFERRED_SIZE))
																		.addGap(
																				18,
																				18,
																				18)
																		.addComponent(
																				jLabel37)
																		.addPreferredGap(
																				javax.swing.LayoutStyle.ComponentPlacement.RELATED)
																		.addGroup(
																				jPanel9Layout
																						.createParallelGroup(
																								javax.swing.GroupLayout.Alignment.BASELINE)
																						.addComponent(
																								jLabel38)
																						.addComponent(
																								jComboBox22,
																								javax.swing.GroupLayout.PREFERRED_SIZE,
																								javax.swing.GroupLayout.DEFAULT_SIZE,
																								javax.swing.GroupLayout.PREFERRED_SIZE)
																						.addComponent(
																								jComboBox23,
																								javax.swing.GroupLayout.PREFERRED_SIZE,
																								20,
																								javax.swing.GroupLayout.PREFERRED_SIZE)
																						.addComponent(
																								jLabel39)
																						.addComponent(
																								jComboBox24,
																								javax.swing.GroupLayout.PREFERRED_SIZE,
																								javax.swing.GroupLayout.DEFAULT_SIZE,
																								javax.swing.GroupLayout.PREFERRED_SIZE)
																						.addComponent(
																								jComboBox25,
																								javax.swing.GroupLayout.PREFERRED_SIZE,
																								javax.swing.GroupLayout.DEFAULT_SIZE,
																								javax.swing.GroupLayout.PREFERRED_SIZE)
																						.addComponent(
																								jLabel40)
																						.addComponent(
																								jComboBox26,
																								javax.swing.GroupLayout.PREFERRED_SIZE,
																								javax.swing.GroupLayout.DEFAULT_SIZE,
																								javax.swing.GroupLayout.PREFERRED_SIZE))
																		.addGap(
																				18,
																				18,
																				18)
																		.addComponent(
																				jLabel41)
																		.addPreferredGap(
																				javax.swing.LayoutStyle.ComponentPlacement.RELATED)
																		.addComponent(
																				jScrollPane19,
																				javax.swing.GroupLayout.PREFERRED_SIZE,
																				67,
																				javax.swing.GroupLayout.PREFERRED_SIZE)
																		.addGroup(
																				jPanel9Layout
																						.createParallelGroup(
																								javax.swing.GroupLayout.Alignment.LEADING)
																						.addGroup(
																								jPanel9Layout
																										.createSequentialGroup()
																										.addGap(
																												17,
																												17,
																												17)
																										.addComponent(
																												jRadioButton5)
																										.addPreferredGap(
																												javax.swing.LayoutStyle.ComponentPlacement.RELATED)
																										.addComponent(
																												jRadioButton6)
																										.addPreferredGap(
																												javax.swing.LayoutStyle.ComponentPlacement.RELATED)
																										.addComponent(
																												jRadioButton7))
																						.addGroup(
																								jPanel9Layout
																										.createSequentialGroup()
																										.addGap(
																												6,
																												6,
																												6)
																										.addComponent(
																												jPanel13,
																												javax.swing.GroupLayout.PREFERRED_SIZE,
																												javax.swing.GroupLayout.DEFAULT_SIZE,
																												javax.swing.GroupLayout.PREFERRED_SIZE)))
																		.addPreferredGap(
																				javax.swing.LayoutStyle.ComponentPlacement.RELATED)
																		.addGroup(
																				jPanel9Layout
																						.createParallelGroup(
																								javax.swing.GroupLayout.Alignment.BASELINE)
																						.addComponent(
																								jButton23)
																						.addComponent(
																								jButton24))))
										.addContainerGap(
												javax.swing.GroupLayout.DEFAULT_SIZE,
												Short.MAX_VALUE)));

		jPanel9Layout.linkSize(javax.swing.SwingConstants.VERTICAL,
				new java.awt.Component[] { jComboBox12, jComboBox13,
						jComboBox14 });

		javax.swing.GroupLayout gebeurtenisVensterLayout = new javax.swing.GroupLayout(
				gebeurtenisVenster.getContentPane());
		gebeurtenisVenster.getContentPane().setLayout(gebeurtenisVensterLayout);
		gebeurtenisVensterLayout.setHorizontalGroup(gebeurtenisVensterLayout
				.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
				.addGroup(
						gebeurtenisVensterLayout.createSequentialGroup()
								.addContainerGap().addComponent(jPanel9,
										javax.swing.GroupLayout.PREFERRED_SIZE,
										600,
										javax.swing.GroupLayout.PREFERRED_SIZE)
								.addContainerGap(
										javax.swing.GroupLayout.DEFAULT_SIZE,
										Short.MAX_VALUE)));
		gebeurtenisVensterLayout.setVerticalGroup(gebeurtenisVensterLayout
				.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
				.addGroup(
						gebeurtenisVensterLayout.createSequentialGroup()
								.addContainerGap().addComponent(jPanel9,
										javax.swing.GroupLayout.PREFERRED_SIZE,
										javax.swing.GroupLayout.DEFAULT_SIZE,
										javax.swing.GroupLayout.PREFERRED_SIZE)
								.addContainerGap(
										javax.swing.GroupLayout.DEFAULT_SIZE,
										Short.MAX_VALUE)));

		bestandsVenster.setTitle("Bestand");
		bestandsVenster.setLocationByPlatform(true);
		bestandsVenster.setMinimumSize(new java.awt.Dimension(530, 578));
		bestandsVenster.setResizable(false);

		jPanel10.setBorder(new javax.swing.border.SoftBevelBorder(
				javax.swing.border.BevelBorder.RAISED));

		jFileChooser1.setBorder(null);
		jFileChooser1.addActionListener(new java.awt.event.ActionListener() {
			public void actionPerformed(java.awt.event.ActionEvent evt) {
				jFileChooser1ActionPerformed(evt);
			}
		});

		jLabel12.setFont(new java.awt.Font("Arial", 0, 14));
		jLabel12.setText("Beschrijving:");

		jTextPane2.setMargin(new java.awt.Insets(5, 5, 5, 5));
		jScrollPane13.setViewportView(jTextPane2);

		jButton7.setText("Opslaan");
		jButton7.addActionListener(new java.awt.event.ActionListener() {
			public void actionPerformed(java.awt.event.ActionEvent evt) {
				jButton7ActionPerformed(evt);
			}
		});

		jButton8.setText("Annuleren");
		jButton8.addActionListener(new java.awt.event.ActionListener() {
			public void actionPerformed(java.awt.event.ActionEvent evt) {
				jButton8ActionPerformed(evt);
			}
		});

		jLabel13.setFont(new java.awt.Font("Arial", 0, 14));
		jLabel13.setText("Taak:");

		jLabel65.setFont(new java.awt.Font("Arial", 0, 14));
		jLabel65.setText("Vak:");

		jButton27.setText("Voeg toe");
		jButton27.addActionListener(new java.awt.event.ActionListener() {
			public void actionPerformed(java.awt.event.ActionEvent evt) {
				jButton27ActionPerformed(evt);
			}
		});

		jScrollPane31.setViewportView(jList11);

		jScrollPane32.setViewportView(jList12);

		jButton28.setText("Voeg toe");

		jButton29.setText("Verwijder");

		jButton30.setText("Verwijder");

		javax.swing.GroupLayout jPanel10Layout = new javax.swing.GroupLayout(
				jPanel10);
		jPanel10.setLayout(jPanel10Layout);
		jPanel10Layout
				.setHorizontalGroup(jPanel10Layout
						.createParallelGroup(
								javax.swing.GroupLayout.Alignment.LEADING)
						.addGroup(
								jPanel10Layout
										.createSequentialGroup()
										.addContainerGap()
										.addGroup(
												jPanel10Layout
														.createParallelGroup(
																javax.swing.GroupLayout.Alignment.LEADING)
														.addComponent(jLabel64)
														.addGroup(
																jPanel10Layout
																		.createSequentialGroup()
																		.addGroup(
																				jPanel10Layout
																						.createParallelGroup(
																								javax.swing.GroupLayout.Alignment.TRAILING)
																						.addGroup(
																								javax.swing.GroupLayout.Alignment.LEADING,
																								jPanel10Layout
																										.createSequentialGroup()
																										.addComponent(
																												jComboBox27,
																												javax.swing.GroupLayout.PREFERRED_SIZE,
																												319,
																												javax.swing.GroupLayout.PREFERRED_SIZE)
																										.addPreferredGap(
																												javax.swing.LayoutStyle.ComponentPlacement.RELATED)
																										.addComponent(
																												jButton27)
																										.addPreferredGap(
																												javax.swing.LayoutStyle.ComponentPlacement.RELATED)
																										.addComponent(
																												jButton29))
																						.addComponent(
																								jLabel65,
																								javax.swing.GroupLayout.Alignment.LEADING))
																		.addContainerGap(
																				47,
																				Short.MAX_VALUE))
														.addGroup(
																jPanel10Layout
																		.createSequentialGroup()
																		.addGroup(
																				jPanel10Layout
																						.createParallelGroup(
																								javax.swing.GroupLayout.Alignment.LEADING)
																						.addComponent(
																								jLabel13)
																						.addGroup(
																								jPanel10Layout
																										.createSequentialGroup()
																										.addComponent(
																												jComboBox7,
																												javax.swing.GroupLayout.PREFERRED_SIZE,
																												319,
																												javax.swing.GroupLayout.PREFERRED_SIZE)
																										.addPreferredGap(
																												javax.swing.LayoutStyle.ComponentPlacement.RELATED)
																										.addComponent(
																												jButton28)
																										.addPreferredGap(
																												javax.swing.LayoutStyle.ComponentPlacement.RELATED)
																										.addComponent(
																												jButton30)))
																		.addGap(
																				47,
																				47,
																				47))
														.addGroup(
																javax.swing.GroupLayout.Alignment.TRAILING,
																jPanel10Layout
																		.createSequentialGroup()
																		.addGroup(
																				jPanel10Layout
																						.createParallelGroup(
																								javax.swing.GroupLayout.Alignment.TRAILING)
																						.addComponent(
																								jScrollPane32,
																								javax.swing.GroupLayout.Alignment.LEADING,
																								javax.swing.GroupLayout.DEFAULT_SIZE,
																								500,
																								Short.MAX_VALUE)
																						.addComponent(
																								jScrollPane13,
																								javax.swing.GroupLayout.Alignment.LEADING,
																								javax.swing.GroupLayout.DEFAULT_SIZE,
																								500,
																								Short.MAX_VALUE)
																						.addGroup(
																								javax.swing.GroupLayout.Alignment.LEADING,
																								jPanel10Layout
																										.createSequentialGroup()
																										.addComponent(
																												jButton7)
																										.addPreferredGap(
																												javax.swing.LayoutStyle.ComponentPlacement.RELATED)
																										.addComponent(
																												jButton8))
																						.addComponent(
																								jLabel12,
																								javax.swing.GroupLayout.Alignment.LEADING))
																		.addGap(
																				18,
																				18,
																				18))
														.addGroup(
																jPanel10Layout
																		.createSequentialGroup()
																		.addGroup(
																				jPanel10Layout
																						.createParallelGroup(
																								javax.swing.GroupLayout.Alignment.TRAILING,
																								false)
																						.addComponent(
																								jScrollPane31,
																								javax.swing.GroupLayout.Alignment.LEADING)
																						.addComponent(
																								jFileChooser1,
																								javax.swing.GroupLayout.Alignment.LEADING,
																								javax.swing.GroupLayout.DEFAULT_SIZE,
																								javax.swing.GroupLayout.DEFAULT_SIZE,
																								Short.MAX_VALUE))
																		.addContainerGap(
																				18,
																				Short.MAX_VALUE)))));
		jPanel10Layout
				.setVerticalGroup(jPanel10Layout
						.createParallelGroup(
								javax.swing.GroupLayout.Alignment.LEADING)
						.addGroup(
								javax.swing.GroupLayout.Alignment.TRAILING,
								jPanel10Layout
										.createSequentialGroup()
										.addComponent(
												jFileChooser1,
												javax.swing.GroupLayout.PREFERRED_SIZE,
												338,
												javax.swing.GroupLayout.PREFERRED_SIZE)
										.addPreferredGap(
												javax.swing.LayoutStyle.ComponentPlacement.RELATED)
										.addComponent(jLabel65)
										.addPreferredGap(
												javax.swing.LayoutStyle.ComponentPlacement.RELATED)
										.addGroup(
												jPanel10Layout
														.createParallelGroup(
																javax.swing.GroupLayout.Alignment.BASELINE)
														.addComponent(
																jComboBox27,
																javax.swing.GroupLayout.PREFERRED_SIZE,
																javax.swing.GroupLayout.DEFAULT_SIZE,
																javax.swing.GroupLayout.PREFERRED_SIZE)
														.addComponent(jButton27)
														.addComponent(jButton29))
										.addPreferredGap(
												javax.swing.LayoutStyle.ComponentPlacement.RELATED)
										.addComponent(
												jScrollPane31,
												javax.swing.GroupLayout.PREFERRED_SIZE,
												javax.swing.GroupLayout.DEFAULT_SIZE,
												javax.swing.GroupLayout.PREFERRED_SIZE)
										.addGap(18, 18, 18)
										.addComponent(jLabel13)
										.addPreferredGap(
												javax.swing.LayoutStyle.ComponentPlacement.RELATED)
										.addGroup(
												jPanel10Layout
														.createParallelGroup(
																javax.swing.GroupLayout.Alignment.BASELINE)
														.addComponent(
																jComboBox7,
																javax.swing.GroupLayout.PREFERRED_SIZE,
																javax.swing.GroupLayout.DEFAULT_SIZE,
																javax.swing.GroupLayout.PREFERRED_SIZE)
														.addComponent(jButton28)
														.addComponent(jButton30))
										.addPreferredGap(
												javax.swing.LayoutStyle.ComponentPlacement.RELATED)
										.addComponent(
												jScrollPane32,
												javax.swing.GroupLayout.PREFERRED_SIZE,
												javax.swing.GroupLayout.DEFAULT_SIZE,
												javax.swing.GroupLayout.PREFERRED_SIZE)
										.addGap(18, 18, 18)
										.addComponent(jLabel12)
										.addPreferredGap(
												javax.swing.LayoutStyle.ComponentPlacement.RELATED)
										.addComponent(
												jScrollPane13,
												javax.swing.GroupLayout.PREFERRED_SIZE,
												76,
												javax.swing.GroupLayout.PREFERRED_SIZE)
										.addGroup(
												jPanel10Layout
														.createParallelGroup(
																javax.swing.GroupLayout.Alignment.LEADING)
														.addGroup(
																jPanel10Layout
																		.createSequentialGroup()
																		.addPreferredGap(
																				javax.swing.LayoutStyle.ComponentPlacement.RELATED,
																				60,
																				Short.MAX_VALUE)
																		.addComponent(
																				jLabel64))
														.addGroup(
																jPanel10Layout
																		.createSequentialGroup()
																		.addGap(
																				18,
																				18,
																				18)
																		.addGroup(
																				jPanel10Layout
																						.createParallelGroup(
																								javax.swing.GroupLayout.Alignment.BASELINE)
																						.addComponent(
																								jButton7)
																						.addComponent(
																								jButton8))
																		.addContainerGap()))));

		javax.swing.GroupLayout bestandsVensterLayout = new javax.swing.GroupLayout(
				bestandsVenster.getContentPane());
		bestandsVenster.getContentPane().setLayout(bestandsVensterLayout);
		bestandsVensterLayout.setHorizontalGroup(bestandsVensterLayout
				.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
				.addGroup(
						bestandsVensterLayout.createSequentialGroup()
								.addContainerGap().addComponent(jPanel10,
										javax.swing.GroupLayout.PREFERRED_SIZE,
										javax.swing.GroupLayout.DEFAULT_SIZE,
										javax.swing.GroupLayout.PREFERRED_SIZE)
								.addContainerGap(
										javax.swing.GroupLayout.DEFAULT_SIZE,
										Short.MAX_VALUE)));
		bestandsVensterLayout.setVerticalGroup(bestandsVensterLayout
				.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
				.addGroup(
						javax.swing.GroupLayout.Alignment.TRAILING,
						bestandsVensterLayout.createSequentialGroup()
								.addContainerGap().addComponent(jPanel10,
										javax.swing.GroupLayout.DEFAULT_SIZE,
										javax.swing.GroupLayout.DEFAULT_SIZE,
										Short.MAX_VALUE).addContainerGap()));

		importVenster.setTitle("Import");

		jFileChooser2.addActionListener(new java.awt.event.ActionListener() {
			public void actionPerformed(java.awt.event.ActionEvent evt) {
				jFileChooser2ActionPerformed(evt);
			}
		});
		

		javax.swing.GroupLayout importVensterLayout = new javax.swing.GroupLayout(
				importVenster.getContentPane());
		importVenster.getContentPane().setLayout(importVensterLayout);
		importVensterLayout.setHorizontalGroup(importVensterLayout
				.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
				.addComponent(jFileChooser2,
						javax.swing.GroupLayout.PREFERRED_SIZE,
						javax.swing.GroupLayout.DEFAULT_SIZE,
						javax.swing.GroupLayout.PREFERRED_SIZE));
		importVensterLayout.setVerticalGroup(importVensterLayout
				.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
				.addComponent(jFileChooser2,
						javax.swing.GroupLayout.PREFERRED_SIZE,
						javax.swing.GroupLayout.DEFAULT_SIZE,
						javax.swing.GroupLayout.PREFERRED_SIZE));

		verwijderVenster.setTitle("Waarschuwing!");
		verwijderVenster.setResizable(false);

		jLabel14.setFont(new java.awt.Font("Arial", 0, 14)); // NOI18N
		jLabel14.setText("Weet u zeker dat u dit wilt verwijderen?");

		jButton12.setText("Bevestigen");
		jButton12.addActionListener(new java.awt.event.ActionListener() {
			public void actionPerformed(java.awt.event.ActionEvent evt) {
				jButton12ActionPerformed(evt);
			}
		});

		jButton13.setText("Annuleren");
		jButton13.addActionListener(new java.awt.event.ActionListener() {
			public void actionPerformed(java.awt.event.ActionEvent evt) {
				jButton13ActionPerformed(evt);
			}
		});

		jLabel71.setIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/Icons/50.png"))); // NOI18N

		javax.swing.GroupLayout verwijderVensterLayout = new javax.swing.GroupLayout(
				verwijderVenster.getContentPane());
		verwijderVenster.getContentPane().setLayout(verwijderVensterLayout);
		verwijderVensterLayout
				.setHorizontalGroup(verwijderVensterLayout
						.createParallelGroup(
								javax.swing.GroupLayout.Alignment.LEADING)
						.addGroup(
								verwijderVensterLayout
										.createSequentialGroup()
										.addGap(33, 33, 33)
										.addGroup(
												verwijderVensterLayout
														.createParallelGroup(
																javax.swing.GroupLayout.Alignment.LEADING)
														.addGroup(
																javax.swing.GroupLayout.Alignment.TRAILING,
																verwijderVensterLayout
																		.createSequentialGroup()
																		.addComponent(
																				jLabel71)
																		.addGap(
																				18,
																				18,
																				18)
																		.addComponent(
																				jLabel14))
														.addGroup(
																verwijderVensterLayout
																		.createSequentialGroup()
																		.addGap(
																				62,
																				62,
																				62)
																		.addComponent(
																				jButton12)
																		.addPreferredGap(
																				javax.swing.LayoutStyle.ComponentPlacement.RELATED)
																		.addComponent(
																				jButton13)
																		.addPreferredGap(
																				javax.swing.LayoutStyle.ComponentPlacement.RELATED,
																				71,
																				javax.swing.GroupLayout.PREFERRED_SIZE)))
										.addContainerGap(67, Short.MAX_VALUE)));
		verwijderVensterLayout
				.setVerticalGroup(verwijderVensterLayout
						.createParallelGroup(
								javax.swing.GroupLayout.Alignment.LEADING)
						.addGroup(
								verwijderVensterLayout
										.createSequentialGroup()
										.addGap(27, 27, 27)
										.addGroup(
												verwijderVensterLayout
														.createParallelGroup(
																javax.swing.GroupLayout.Alignment.LEADING)
														.addComponent(jLabel14)
														.addComponent(jLabel71))
										.addPreferredGap(
												javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
										.addGroup(
												verwijderVensterLayout
														.createParallelGroup(
																javax.swing.GroupLayout.Alignment.LEADING)
														.addComponent(jButton13)
														.addComponent(jButton12))
										.addContainerGap(31, Short.MAX_VALUE)));

		aboutVenster.setTitle("About");

		jPanel16.setBorder(new javax.swing.border.SoftBevelBorder(
				javax.swing.border.BevelBorder.RAISED));

		jLabel53.setIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/usim7.jpg"))); // NOI18N
		jLabel53.setBorder(javax.swing.BorderFactory.createEtchedBorder());

		jLabel54.setFont(new java.awt.Font("Arial", 1, 14));
		jLabel54.setText("                  USIM Pro");
		jLabel54.setBorder(javax.swing.BorderFactory.createEtchedBorder());

		jLabel55.setFont(new java.awt.Font("Arial", 1, 14));
		jLabel55.setText("    (c) Universiteit Antwerpen 2009");
		jLabel55.setBorder(javax.swing.BorderFactory.createEtchedBorder());

		jButton14.setFont(new java.awt.Font("Arial", 0, 14));
		jButton14.setText("Annuleren");
		jButton14.addActionListener(new java.awt.event.ActionListener() {
			public void actionPerformed(java.awt.event.ActionEvent evt) {
				jButton14ActionPerformed(evt);
			}
		});

		javax.swing.GroupLayout jPanel16Layout = new javax.swing.GroupLayout(
				jPanel16);
		jPanel16.setLayout(jPanel16Layout);
		jPanel16Layout
				.setHorizontalGroup(jPanel16Layout
						.createParallelGroup(
								javax.swing.GroupLayout.Alignment.LEADING)
						.addGroup(
								jPanel16Layout
										.createSequentialGroup()
										.addContainerGap()
										.addComponent(
												jLabel53,
												javax.swing.GroupLayout.PREFERRED_SIZE,
												156,
												javax.swing.GroupLayout.PREFERRED_SIZE)
										.addPreferredGap(
												javax.swing.LayoutStyle.ComponentPlacement.RELATED)
										.addGroup(
												jPanel16Layout
														.createParallelGroup(
																javax.swing.GroupLayout.Alignment.TRAILING)
														.addComponent(
																jLabel54,
																javax.swing.GroupLayout.DEFAULT_SIZE,
																252,
																Short.MAX_VALUE)
														.addComponent(
																jLabel55,
																javax.swing.GroupLayout.DEFAULT_SIZE,
																252,
																Short.MAX_VALUE)
														.addComponent(jButton14))
										.addContainerGap()));
		jPanel16Layout
				.setVerticalGroup(jPanel16Layout
						.createParallelGroup(
								javax.swing.GroupLayout.Alignment.LEADING)
						.addGroup(
								javax.swing.GroupLayout.Alignment.TRAILING,
								jPanel16Layout
										.createSequentialGroup()
										.addContainerGap(17, Short.MAX_VALUE)
										.addGroup(
												jPanel16Layout
														.createParallelGroup(
																javax.swing.GroupLayout.Alignment.TRAILING)
														.addComponent(
																jLabel53,
																javax.swing.GroupLayout.PREFERRED_SIZE,
																350,
																javax.swing.GroupLayout.PREFERRED_SIZE)
														.addGroup(
																jPanel16Layout
																		.createSequentialGroup()
																		.addComponent(
																				jLabel54,
																				javax.swing.GroupLayout.PREFERRED_SIZE,
																				34,
																				javax.swing.GroupLayout.PREFERRED_SIZE)
																		.addPreferredGap(
																				javax.swing.LayoutStyle.ComponentPlacement.RELATED)
																		.addComponent(
																				jLabel55,
																				javax.swing.GroupLayout.PREFERRED_SIZE,
																				30,
																				javax.swing.GroupLayout.PREFERRED_SIZE)
																		.addGap(
																				145,
																				145,
																				145)
																		.addComponent(
																				jButton14)))
										.addGap(16, 16, 16)));

		javax.swing.GroupLayout aboutVensterLayout = new javax.swing.GroupLayout(
				aboutVenster.getContentPane());
		aboutVenster.getContentPane().setLayout(aboutVensterLayout);
		aboutVensterLayout
				.setHorizontalGroup(aboutVensterLayout
						.createParallelGroup(
								javax.swing.GroupLayout.Alignment.LEADING)
						.addGap(0, 444, Short.MAX_VALUE)
						.addGroup(
								aboutVensterLayout
										.createParallelGroup(
												javax.swing.GroupLayout.Alignment.LEADING)
										.addGroup(
												aboutVensterLayout
														.createSequentialGroup()
														.addContainerGap()
														.addComponent(
																jPanel16,
																javax.swing.GroupLayout.DEFAULT_SIZE,
																javax.swing.GroupLayout.DEFAULT_SIZE,
																Short.MAX_VALUE)
														.addContainerGap())));
		aboutVensterLayout
				.setVerticalGroup(aboutVensterLayout
						.createParallelGroup(
								javax.swing.GroupLayout.Alignment.LEADING)
						.addGap(0, 401, Short.MAX_VALUE)
						.addGroup(
								aboutVensterLayout
										.createParallelGroup(
												javax.swing.GroupLayout.Alignment.LEADING)
										.addGroup(
												aboutVensterLayout
														.createSequentialGroup()
														.addContainerGap()
														.addComponent(
																jPanel16,
																javax.swing.GroupLayout.DEFAULT_SIZE,
																javax.swing.GroupLayout.DEFAULT_SIZE,
																Short.MAX_VALUE)
														.addContainerGap())));

		inlogVenster.setTitle("Inloggen");
		inlogVenster.toFront();
		inlogVenster.setResizable(false);

		jPanel17.setBorder(new javax.swing.border.SoftBevelBorder(
				javax.swing.border.BevelBorder.RAISED));

		jLabel58.setText("Gebruikersnaam : ");

		jLabel59.setText("Paswoord :");

		jButton21.setText("Inloggen");

		jButton22.setText("Annuleren");

		javax.swing.GroupLayout jPanel17Layout = new javax.swing.GroupLayout(
				jPanel17);
		jPanel17.setLayout(jPanel17Layout);
		jPanel17Layout
				.setHorizontalGroup(jPanel17Layout
						.createParallelGroup(
								javax.swing.GroupLayout.Alignment.LEADING)
						.addGroup(
								jPanel17Layout
										.createSequentialGroup()
										.addGap(6, 6, 6)
										.addGroup(
												jPanel17Layout
														.createParallelGroup(
																javax.swing.GroupLayout.Alignment.TRAILING)
														.addGroup(
																jPanel17Layout
																		.createSequentialGroup()
																		.addComponent(
																				jButton21)
																		.addPreferredGap(
																				javax.swing.LayoutStyle.ComponentPlacement.RELATED)
																		.addComponent(
																				jButton22))
														.addGroup(
																jPanel17Layout
																		.createParallelGroup(
																				javax.swing.GroupLayout.Alignment.TRAILING,
																				false)
																		.addGroup(
																				javax.swing.GroupLayout.Alignment.LEADING,
																				jPanel17Layout
																						.createSequentialGroup()
																						.addComponent(
																								jLabel59,
																								javax.swing.GroupLayout.PREFERRED_SIZE,
																								71,
																								javax.swing.GroupLayout.PREFERRED_SIZE)
																						.addGap(
																								22,
																								22,
																								22)
																						.addComponent(
																								jPasswordField1))
																		.addGroup(
																				javax.swing.GroupLayout.Alignment.LEADING,
																				jPanel17Layout
																						.createSequentialGroup()
																						.addComponent(
																								jLabel58,
																								javax.swing.GroupLayout.PREFERRED_SIZE,
																								87,
																								javax.swing.GroupLayout.PREFERRED_SIZE)
																						.addPreferredGap(
																								javax.swing.LayoutStyle.ComponentPlacement.RELATED)
																						.addComponent(
																								jTextField9,
																								javax.swing.GroupLayout.PREFERRED_SIZE,
																								309,
																								javax.swing.GroupLayout.PREFERRED_SIZE))))
										.addContainerGap(
												javax.swing.GroupLayout.DEFAULT_SIZE,
												Short.MAX_VALUE)));
		jPanel17Layout
				.setVerticalGroup(jPanel17Layout
						.createParallelGroup(
								javax.swing.GroupLayout.Alignment.LEADING)
						.addGroup(
								jPanel17Layout
										.createSequentialGroup()
										.addGap(22, 22, 22)
										.addGroup(
												jPanel17Layout
														.createParallelGroup(
																javax.swing.GroupLayout.Alignment.BASELINE)
														.addComponent(jLabel58)
														.addComponent(
																jTextField9,
																javax.swing.GroupLayout.PREFERRED_SIZE,
																javax.swing.GroupLayout.DEFAULT_SIZE,
																javax.swing.GroupLayout.PREFERRED_SIZE))
										.addPreferredGap(
												javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
										.addGroup(
												jPanel17Layout
														.createParallelGroup(
																javax.swing.GroupLayout.Alignment.BASELINE)
														.addComponent(jLabel59)
														.addComponent(
																jPasswordField1,
																javax.swing.GroupLayout.PREFERRED_SIZE,
																javax.swing.GroupLayout.DEFAULT_SIZE,
																javax.swing.GroupLayout.PREFERRED_SIZE))
										.addPreferredGap(
												javax.swing.LayoutStyle.ComponentPlacement.RELATED,
												37, Short.MAX_VALUE)
										.addGroup(
												jPanel17Layout
														.createParallelGroup(
																javax.swing.GroupLayout.Alignment.BASELINE)
														.addComponent(jButton21)
														.addComponent(jButton22))
										.addContainerGap()));

		javax.swing.GroupLayout inlogVensterLayout = new javax.swing.GroupLayout(
				inlogVenster.getContentPane());
		inlogVenster.getContentPane().setLayout(inlogVensterLayout);
		inlogVensterLayout.setHorizontalGroup(inlogVensterLayout
				.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
				.addGroup(
						inlogVensterLayout.createSequentialGroup()
								.addContainerGap().addComponent(jPanel17,
										javax.swing.GroupLayout.PREFERRED_SIZE,
										javax.swing.GroupLayout.DEFAULT_SIZE,
										javax.swing.GroupLayout.PREFERRED_SIZE)
								.addContainerGap(
										javax.swing.GroupLayout.DEFAULT_SIZE,
										Short.MAX_VALUE)));
		inlogVensterLayout.setVerticalGroup(inlogVensterLayout
				.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
				.addGroup(
						inlogVensterLayout.createSequentialGroup()
								.addContainerGap().addComponent(jPanel17,
										javax.swing.GroupLayout.DEFAULT_SIZE,
										javax.swing.GroupLayout.DEFAULT_SIZE,
										Short.MAX_VALUE).addContainerGap()));

		nietGevondenVenster.setTitle("Waarschuwing");
		nietGevondenVenster.setResizable(false);

		jLabel63.setFont(new java.awt.Font("Arial", 0, 14));
		jLabel63.setText("Bestand niet gevonden! ");

		jButton25.setText("OK");
		jButton25.addActionListener(new java.awt.event.ActionListener() {
			public void actionPerformed(java.awt.event.ActionEvent evt) {
				jButton25ActionPerformed(evt);
			}
		});

		jLabel72.setIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/Icons/50.png"))); // NOI18N

		javax.swing.GroupLayout nietGevondenVensterLayout = new javax.swing.GroupLayout(
				nietGevondenVenster.getContentPane());
		nietGevondenVenster.getContentPane().setLayout(
				nietGevondenVensterLayout);
		nietGevondenVensterLayout
				.setHorizontalGroup(nietGevondenVensterLayout
						.createParallelGroup(
								javax.swing.GroupLayout.Alignment.LEADING)
						.addGroup(
								nietGevondenVensterLayout
										.createSequentialGroup()
										.addGroup(
												nietGevondenVensterLayout
														.createParallelGroup(
																javax.swing.GroupLayout.Alignment.LEADING)
														.addGroup(
																nietGevondenVensterLayout
																		.createSequentialGroup()
																		.addGap(
																				30,
																				30,
																				30)
																		.addComponent(
																				jLabel72)
																		.addGap(
																				18,
																				18,
																				18)
																		.addComponent(
																				jLabel63))
														.addGroup(
																nietGevondenVensterLayout
																		.createSequentialGroup()
																		.addContainerGap()
																		.addComponent(
																				jButton25)))
										.addContainerGap(31, Short.MAX_VALUE)));
		nietGevondenVensterLayout
				.setVerticalGroup(nietGevondenVensterLayout
						.createParallelGroup(
								javax.swing.GroupLayout.Alignment.LEADING)
						.addGroup(
								nietGevondenVensterLayout
										.createSequentialGroup()
										.addGap(22, 22, 22)
										.addGroup(
												nietGevondenVensterLayout
														.createParallelGroup(
																javax.swing.GroupLayout.Alignment.LEADING)
														.addComponent(jLabel72)
														.addComponent(jLabel63))
										.addPreferredGap(
												javax.swing.LayoutStyle.ComponentPlacement.RELATED,
												29, Short.MAX_VALUE)
										.addComponent(jButton25)
										.addContainerGap()));

		exportVenster.setTitle("Export");
		exportVenster.setResizable(false);
		
		jPanel18.setBorder(javax.swing.BorderFactory.createEtchedBorder());

		jToggleButton3.setText("Alle contacten");

		jToggleButton8.setText("Alles");

		jToggleButton1.setText("Alle vakken");

		jToggleButton7.setText("Alle gebeurtenissen");

		jSeparator2.setOrientation(javax.swing.SwingConstants.VERTICAL);

		jSeparator3.setOrientation(javax.swing.SwingConstants.VERTICAL);

		jSeparator4.setOrientation(javax.swing.SwingConstants.VERTICAL);

		jToggleButton5.setText("Alle leerkrachten");

		jToggleButton6.setText("Alle taken");

		jToggleButton9.setText("Alle studenten");

		jToggleButton10.setText("Alle examens");

		jToggleButton4.setText("Alle projecten");

		jToggleButton2.setText("Alle lessen");

		jToggleButton11.setText("Alle deadlines");

		jToggleButton12.setText("Alle bestanden");

		jToggleButton8
				.addChangeListener(new javax.swing.event.ChangeListener() {
					public void stateChanged(javax.swing.event.ChangeEvent evt) {
						jToggleButton8StateChanged(evt);
					}
				});

		jToggleButton1
				.addChangeListener(new javax.swing.event.ChangeListener() {
					public void stateChanged(javax.swing.event.ChangeEvent evt) {
						jToggleButton1StateChanged(evt);
					}
				});

		jToggleButton2
				.addChangeListener(new javax.swing.event.ChangeListener() {
					public void stateChanged(javax.swing.event.ChangeEvent evt) {
						jToggleButton2StateChanged(evt);
					}
				});

		jToggleButton3
				.addChangeListener(new javax.swing.event.ChangeListener() {
					public void stateChanged(javax.swing.event.ChangeEvent evt) {
						jToggleButton3StateChanged(evt);
					}
				});

		jToggleButton4
				.addChangeListener(new javax.swing.event.ChangeListener() {
					public void stateChanged(javax.swing.event.ChangeEvent evt) {
						jToggleButton4StateChanged(evt);
					}
				});

		jToggleButton5
				.addChangeListener(new javax.swing.event.ChangeListener() {
					public void stateChanged(javax.swing.event.ChangeEvent evt) {
						jToggleButton5StateChanged(evt);
					}
				});

		jToggleButton6
				.addChangeListener(new javax.swing.event.ChangeListener() {
					public void stateChanged(javax.swing.event.ChangeEvent evt) {
						jToggleButton6StateChanged(evt);
					}
				});

		jToggleButton7
				.addChangeListener(new javax.swing.event.ChangeListener() {
					public void stateChanged(javax.swing.event.ChangeEvent evt) {
						jToggleButton7StateChanged(evt);
					}
				});

		jToggleButton9
				.addChangeListener(new javax.swing.event.ChangeListener() {
					public void stateChanged(javax.swing.event.ChangeEvent evt) {
						jToggleButton9StateChanged(evt);
					}
				});

		jToggleButton10
				.addChangeListener(new javax.swing.event.ChangeListener() {
					public void stateChanged(javax.swing.event.ChangeEvent evt) {
						jToggleButton10StateChanged(evt);
					}
				});

		jToggleButton11
				.addChangeListener(new javax.swing.event.ChangeListener() {
					public void stateChanged(javax.swing.event.ChangeEvent evt) {
						jToggleButton11StateChanged(evt);
					}
				});

		jPanel19.setBorder(javax.swing.BorderFactory.createEtchedBorder());

		jLabel67.setFont(new java.awt.Font("Tahoma", 0, 14));
		jLabel67.setText("Wat wilt u exporteren?");

		javax.swing.GroupLayout jPanel19Layout = new javax.swing.GroupLayout(
				jPanel19);
		jPanel19.setLayout(jPanel19Layout);
		jPanel19Layout.setHorizontalGroup(jPanel19Layout.createParallelGroup(
				javax.swing.GroupLayout.Alignment.LEADING).addGroup(
				jPanel19Layout.createSequentialGroup().addContainerGap()
						.addComponent(jLabel67).addContainerGap(
								javax.swing.GroupLayout.DEFAULT_SIZE,
								Short.MAX_VALUE)));
		jPanel19Layout.setVerticalGroup(jPanel19Layout.createParallelGroup(
				javax.swing.GroupLayout.Alignment.LEADING).addGroup(
				jPanel19Layout.createSequentialGroup().addContainerGap()
						.addComponent(jLabel67,
								javax.swing.GroupLayout.PREFERRED_SIZE, 17,
								javax.swing.GroupLayout.PREFERRED_SIZE)
						.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE,
								Short.MAX_VALUE)));

		jButton31.setText("Exporteren");
		jButton31.addActionListener(new java.awt.event.ActionListener() {
			public void actionPerformed(java.awt.event.ActionEvent evt) {
				jButton31ActionPerformed(evt);
			}
		});

		jButton32.setText("Annuleren");
		jButton32.addActionListener(new java.awt.event.ActionListener() {
			public void actionPerformed(java.awt.event.ActionEvent evt) {
				jButton32ActionPerformed(evt);
			}
		});

		jButton33.setText("Vakken selecteren");
		jButton33.addActionListener(new java.awt.event.ActionListener() {
			public void actionPerformed(java.awt.event.ActionEvent evt) {
				jButton33ActionPerformed(evt);
			}
		});

		jButton34.setText("Contacten selecteren");
		jButton34.addActionListener(new java.awt.event.ActionListener() {
			public void actionPerformed(java.awt.event.ActionEvent evt) {
				jButton34ActionPerformed(evt);
			}
		});

		jButton35.setText("Gebeurtenissen selecteren");
		jButton35.addActionListener(new java.awt.event.ActionListener() {
			public void actionPerformed(java.awt.event.ActionEvent evt) {
				jButton35ActionPerformed(evt);
			}
		});

		jButton36.setText("Taken selecteren");
		jButton36.addActionListener(new java.awt.event.ActionListener() {
			public void actionPerformed(java.awt.event.ActionEvent evt) {
				jButton36ActionPerformed(evt);
			}
		});

		jButton37.setText("Leerkrachten selecteren");
		jButton37.addActionListener(new java.awt.event.ActionListener() {
			public void actionPerformed(java.awt.event.ActionEvent evt) {
				jButton37ActionPerformed(evt);
			}
		});

		jButton38.setText("Studenten selecteren");
		jButton38.addActionListener(new java.awt.event.ActionListener() {
			public void actionPerformed(java.awt.event.ActionEvent evt) {
				jButton38ActionPerformed(evt);
			}
		});

		jButton39.setText("Examens selecteren");
		jButton39.addActionListener(new java.awt.event.ActionListener() {
			public void actionPerformed(java.awt.event.ActionEvent evt) {
				jButton39ActionPerformed(evt);
			}
		});

		jButton40.setText("Projecten selecteren");
		jButton40.addActionListener(new java.awt.event.ActionListener() {
			public void actionPerformed(java.awt.event.ActionEvent evt) {
				jButton40ActionPerformed(evt);
			}
		});

		jButton41.setText("Lessen selecteren");
		jButton41.addActionListener(new java.awt.event.ActionListener() {
			public void actionPerformed(java.awt.event.ActionEvent evt) {
				jButton41ActionPerformed(evt);
			}
		});

		javax.swing.GroupLayout jPanel18Layout = new javax.swing.GroupLayout(
				jPanel18);
		jPanel18.setLayout(jPanel18Layout);
		jPanel18Layout
				.setHorizontalGroup(jPanel18Layout
						.createParallelGroup(
								javax.swing.GroupLayout.Alignment.LEADING)
						.addGroup(
								jPanel18Layout.createSequentialGroup().addGap(
										207, 207, 207).addComponent(jPanel19,
										javax.swing.GroupLayout.PREFERRED_SIZE,
										javax.swing.GroupLayout.DEFAULT_SIZE,
										javax.swing.GroupLayout.PREFERRED_SIZE)
										.addContainerGap(308, Short.MAX_VALUE))
						.addGroup(
								jPanel18Layout
										.createSequentialGroup()
										.addGroup(
												jPanel18Layout
														.createParallelGroup(
																javax.swing.GroupLayout.Alignment.LEADING)
														.addGroup(
																jPanel18Layout
																		.createSequentialGroup()
																		.addContainerGap()
																		.addComponent(
																				jToggleButton8)
																		.addGap(
																				18,
																				18,
																				18)
																		.addComponent(
																				jSeparator2,
																				javax.swing.GroupLayout.PREFERRED_SIZE,
																				26,
																				javax.swing.GroupLayout.PREFERRED_SIZE))
														.addGroup(
																jPanel18Layout
																		.createSequentialGroup()
																		.addGap(
																				22,
																				22,
																				22)
																		.addComponent(
																				jButton31)))
										.addPreferredGap(
												javax.swing.LayoutStyle.ComponentPlacement.RELATED)
										.addGroup(
												jPanel18Layout
														.createParallelGroup(
																javax.swing.GroupLayout.Alignment.LEADING)
														.addGroup(
																jPanel18Layout
																		.createSequentialGroup()
																		.addComponent(
																				jButton32)
																		.addContainerGap(
																				483,
																				Short.MAX_VALUE))
														.addGroup(
																jPanel18Layout
																		.createSequentialGroup()
																		.addGroup(
																				jPanel18Layout
																						.createParallelGroup(
																								javax.swing.GroupLayout.Alignment.LEADING)
																						.addComponent(
																								jToggleButton3,
																								javax.swing.GroupLayout.DEFAULT_SIZE,
																								109,
																								Short.MAX_VALUE)
																						.addComponent(
																								jToggleButton7,
																								javax.swing.GroupLayout.Alignment.TRAILING,
																								javax.swing.GroupLayout.PREFERRED_SIZE,
																								109,
																								Short.MAX_VALUE)
																						.addComponent(
																								jToggleButton6,
																								javax.swing.GroupLayout.DEFAULT_SIZE,
																								109,
																								Short.MAX_VALUE)
																						.addComponent(
																								jToggleButton1,
																								javax.swing.GroupLayout.DEFAULT_SIZE,
																								109,
																								Short.MAX_VALUE)
																						.addComponent(
																								jToggleButton12,
																								javax.swing.GroupLayout.DEFAULT_SIZE,
																								109,
																								Short.MAX_VALUE))
																		.addGap(
																				28,
																				28,
																				28)
																		.addComponent(
																				jSeparator3,
																				javax.swing.GroupLayout.PREFERRED_SIZE,
																				28,
																				javax.swing.GroupLayout.PREFERRED_SIZE)
																		.addPreferredGap(
																				javax.swing.LayoutStyle.ComponentPlacement.RELATED)
																		.addGroup(
																				jPanel18Layout
																						.createParallelGroup(
																								javax.swing.GroupLayout.Alignment.LEADING,
																								false)
																						.addComponent(
																								jToggleButton11,
																								javax.swing.GroupLayout.DEFAULT_SIZE,
																								javax.swing.GroupLayout.DEFAULT_SIZE,
																								Short.MAX_VALUE)
																						.addComponent(
																								jToggleButton2,
																								javax.swing.GroupLayout.DEFAULT_SIZE,
																								javax.swing.GroupLayout.DEFAULT_SIZE,
																								Short.MAX_VALUE)
																						.addComponent(
																								jToggleButton4,
																								javax.swing.GroupLayout.DEFAULT_SIZE,
																								javax.swing.GroupLayout.DEFAULT_SIZE,
																								Short.MAX_VALUE)
																						.addComponent(
																								jToggleButton10,
																								javax.swing.GroupLayout.DEFAULT_SIZE,
																								javax.swing.GroupLayout.DEFAULT_SIZE,
																								Short.MAX_VALUE)
																						.addComponent(
																								jToggleButton9,
																								javax.swing.GroupLayout.DEFAULT_SIZE,
																								javax.swing.GroupLayout.DEFAULT_SIZE,
																								Short.MAX_VALUE)
																						.addComponent(
																								jToggleButton5))
																		.addGap(
																				31,
																				31,
																				31)
																		.addComponent(
																				jSeparator4,
																				javax.swing.GroupLayout.PREFERRED_SIZE,
																				25,
																				javax.swing.GroupLayout.PREFERRED_SIZE)
																		.addPreferredGap(
																				javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
																		.addGroup(
																				jPanel18Layout
																						.createParallelGroup(
																								javax.swing.GroupLayout.Alignment.LEADING)
																						.addComponent(
																								jButton39)
																						.addComponent(
																								jButton38)
																						.addComponent(
																								jButton37)
																						.addComponent(
																								jButton36)
																						.addComponent(
																								jButton35)
																						.addComponent(
																								jButton34)
																						.addComponent(
																								jButton33,
																								javax.swing.GroupLayout.PREFERRED_SIZE,
																								200,
																								javax.swing.GroupLayout.PREFERRED_SIZE)
																						.addComponent(
																								jButton40)
																						.addComponent(
																								jButton41))
																		.addGap(
																				79,
																				79,
																				79)))));

		jPanel18Layout.linkSize(javax.swing.SwingConstants.HORIZONTAL,
				new java.awt.Component[] { jButton33, jButton34, jButton35,
						jButton36, jButton37, jButton38, jButton39, jButton40,
						jButton41 });

		jPanel18Layout
				.setVerticalGroup(jPanel18Layout
						.createParallelGroup(
								javax.swing.GroupLayout.Alignment.LEADING)
						.addGroup(
								jPanel18Layout
										.createSequentialGroup()
										.addGroup(
												jPanel18Layout
														.createParallelGroup(
																javax.swing.GroupLayout.Alignment.LEADING)
														.addGroup(
																jPanel18Layout
																		.createSequentialGroup()
																		.addGap(
																				21,
																				21,
																				21)
																		.addComponent(
																				jPanel19,
																				javax.swing.GroupLayout.PREFERRED_SIZE,
																				javax.swing.GroupLayout.DEFAULT_SIZE,
																				javax.swing.GroupLayout.PREFERRED_SIZE)
																		.addGroup(
																				jPanel18Layout
																						.createParallelGroup(
																								javax.swing.GroupLayout.Alignment.LEADING)
																						.addGroup(
																								jPanel18Layout
																										.createSequentialGroup()
																										.addGap(
																												71,
																												71,
																												71)
																										.addComponent(
																												jToggleButton5)
																										.addPreferredGap(
																												javax.swing.LayoutStyle.ComponentPlacement.RELATED)
																										.addComponent(
																												jToggleButton9)
																										.addPreferredGap(
																												javax.swing.LayoutStyle.ComponentPlacement.RELATED)
																										.addComponent(
																												jToggleButton10)
																										.addPreferredGap(
																												javax.swing.LayoutStyle.ComponentPlacement.RELATED)
																										.addComponent(
																												jToggleButton4)
																										.addPreferredGap(
																												javax.swing.LayoutStyle.ComponentPlacement.RELATED)
																										.addComponent(
																												jToggleButton2)
																										.addPreferredGap(
																												javax.swing.LayoutStyle.ComponentPlacement.RELATED)
																										.addComponent(
																												jToggleButton11))
																						.addGroup(
																								jPanel18Layout
																										.createSequentialGroup()
																										.addGap(
																												9,
																												9,
																												9)
																										.addComponent(
																												jButton33)
																										.addGap(
																												22,
																												22,
																												22)
																										.addGroup(
																												jPanel18Layout
																														.createParallelGroup(
																																javax.swing.GroupLayout.Alignment.LEADING)
																														.addGroup(
																																jPanel18Layout
																																		.createSequentialGroup()
																																		.addGap(
																																				23,
																																				23,
																																				23)
																																		.addComponent(
																																				jToggleButton8))
																														.addGroup(
																																jPanel18Layout
																																		.createSequentialGroup()
																																		.addGap(
																																				18,
																																				18,
																																				18)
																																		.addComponent(
																																				jButton35)
																																		.addPreferredGap(
																																				javax.swing.LayoutStyle.ComponentPlacement.RELATED)
																																		.addComponent(
																																				jButton36)))
																										.addPreferredGap(
																												javax.swing.LayoutStyle.ComponentPlacement.RELATED)
																										.addComponent(
																												jButton37)
																										.addPreferredGap(
																												javax.swing.LayoutStyle.ComponentPlacement.RELATED)
																										.addComponent(
																												jButton38)
																										.addPreferredGap(
																												javax.swing.LayoutStyle.ComponentPlacement.RELATED)
																										.addComponent(
																												jButton39)
																										.addPreferredGap(
																												javax.swing.LayoutStyle.ComponentPlacement.RELATED)
																										.addComponent(
																												jButton40))
																						.addGroup(
																								jPanel18Layout
																										.createSequentialGroup()
																										.addGap(
																												79,
																												79,
																												79)
																										.addComponent(
																												jToggleButton1)
																										.addPreferredGap(
																												javax.swing.LayoutStyle.ComponentPlacement.RELATED)
																										.addComponent(
																												jToggleButton3)
																										.addPreferredGap(
																												javax.swing.LayoutStyle.ComponentPlacement.RELATED)
																										.addComponent(
																												jToggleButton7)
																										.addPreferredGap(
																												javax.swing.LayoutStyle.ComponentPlacement.RELATED)
																										.addComponent(
																												jToggleButton6)
																										.addPreferredGap(
																												javax.swing.LayoutStyle.ComponentPlacement.RELATED)
																										.addComponent(
																												jToggleButton12))
																						.addGroup(
																								jPanel18Layout
																										.createSequentialGroup()
																										.addPreferredGap(
																												javax.swing.LayoutStyle.ComponentPlacement.RELATED)
																										.addGroup(
																												jPanel18Layout
																														.createParallelGroup(
																																javax.swing.GroupLayout.Alignment.TRAILING)
																														.addComponent(
																																jSeparator3,
																																javax.swing.GroupLayout.PREFERRED_SIZE,
																																266,
																																javax.swing.GroupLayout.PREFERRED_SIZE)
																														.addComponent(
																																jSeparator2,
																																javax.swing.GroupLayout.PREFERRED_SIZE,
																																266,
																																javax.swing.GroupLayout.PREFERRED_SIZE)
																														.addComponent(
																																jSeparator4,
																																javax.swing.GroupLayout.PREFERRED_SIZE,
																																266,
																																javax.swing.GroupLayout.PREFERRED_SIZE)))))
														.addGroup(
																jPanel18Layout
																		.createSequentialGroup()
																		.addGap(
																				109,
																				109,
																				109)
																		.addComponent(
																				jButton34)))
										.addPreferredGap(
												javax.swing.LayoutStyle.ComponentPlacement.RELATED)
										.addComponent(jButton41)
										.addPreferredGap(
												javax.swing.LayoutStyle.ComponentPlacement.RELATED,
												javax.swing.GroupLayout.DEFAULT_SIZE,
												Short.MAX_VALUE)
										.addGroup(
												jPanel18Layout
														.createParallelGroup(
																javax.swing.GroupLayout.Alignment.BASELINE)
														.addComponent(jButton31)
														.addComponent(jButton32))
										.addContainerGap()));

		javax.swing.GroupLayout exportVensterLayout = new javax.swing.GroupLayout(
				exportVenster.getContentPane());
		exportVenster.getContentPane().setLayout(exportVensterLayout);
		exportVensterLayout.setHorizontalGroup(exportVensterLayout
				.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
				.addGroup(
						javax.swing.GroupLayout.Alignment.TRAILING,
						exportVensterLayout.createSequentialGroup()
								.addContainerGap().addComponent(jPanel18,
										javax.swing.GroupLayout.DEFAULT_SIZE,
										javax.swing.GroupLayout.DEFAULT_SIZE,
										Short.MAX_VALUE).addContainerGap()));
		exportVensterLayout.setVerticalGroup(exportVensterLayout
				.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
				.addGroup(
						exportVensterLayout.createSequentialGroup()
								.addContainerGap().addComponent(jPanel18,
										javax.swing.GroupLayout.DEFAULT_SIZE,
										javax.swing.GroupLayout.DEFAULT_SIZE,
										Short.MAX_VALUE).addContainerGap()));

		eventErrorVenster.setTitle("Waarschuwing");
		eventErrorVenster.setResizable(false);

		jButton26.setText("Ok");
		jButton26.addActionListener(new java.awt.event.ActionListener() {
			public void actionPerformed(java.awt.event.ActionEvent evt) {
				jButton26ActionPerformed(evt);
			}
		});

		jLabel66.setFont(new java.awt.Font("Tahoma", 0, 14));
		jLabel66.setText("U moet een startdatum opgeven!");

		jLabel69.setIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/Icons/50.png"))); // NOI18N

		javax.swing.GroupLayout eventErrorVensterLayout = new javax.swing.GroupLayout(
				eventErrorVenster.getContentPane());
		eventErrorVenster.getContentPane().setLayout(eventErrorVensterLayout);
		eventErrorVensterLayout
				.setHorizontalGroup(eventErrorVensterLayout
						.createParallelGroup(
								javax.swing.GroupLayout.Alignment.LEADING)
						.addGroup(
								eventErrorVensterLayout
										.createSequentialGroup()
										.addGap(47, 47, 47)
										.addGroup(
												eventErrorVensterLayout
														.createParallelGroup(
																javax.swing.GroupLayout.Alignment.LEADING)
														.addGroup(
																eventErrorVensterLayout
																		.createSequentialGroup()
																		.addGap(
																				75,
																				75,
																				75)
																		.addComponent(
																				jButton26)
																		.addPreferredGap(
																				javax.swing.LayoutStyle.ComponentPlacement.RELATED,
																				88,
																				javax.swing.GroupLayout.PREFERRED_SIZE))
														.addGroup(
																javax.swing.GroupLayout.Alignment.TRAILING,
																eventErrorVensterLayout
																		.createSequentialGroup()
																		.addComponent(
																				jLabel69,
																				javax.swing.GroupLayout.PREFERRED_SIZE,
																				16,
																				javax.swing.GroupLayout.PREFERRED_SIZE)
																		.addPreferredGap(
																				javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
																		.addComponent(
																				jLabel66)))
										.addContainerGap(62, Short.MAX_VALUE)));
		eventErrorVensterLayout
				.setVerticalGroup(eventErrorVensterLayout
						.createParallelGroup(
								javax.swing.GroupLayout.Alignment.LEADING)
						.addGroup(
								javax.swing.GroupLayout.Alignment.TRAILING,
								eventErrorVensterLayout
										.createSequentialGroup()
										.addContainerGap(31, Short.MAX_VALUE)
										.addGroup(
												eventErrorVensterLayout
														.createParallelGroup(
																javax.swing.GroupLayout.Alignment.LEADING)
														.addComponent(
																jLabel69,
																javax.swing.GroupLayout.PREFERRED_SIZE,
																16,
																javax.swing.GroupLayout.PREFERRED_SIZE)
														.addGroup(
																eventErrorVensterLayout
																		.createSequentialGroup()
																		.addComponent(
																				jLabel66)
																		.addGap(
																				18,
																				18,
																				18)
																		.addComponent(
																				jButton26)))
										.addGap(27, 27, 27)));

		setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
		setTitle("University Student Information Manager");
		setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));

		AchtergrondPanel.setAutoscrolls(true);

		LinksbovenPanel.setBackground(new java.awt.Color(255, 255, 255));
		LinksbovenPanel.setPreferredSize(new java.awt.Dimension(154, 371));
		LinksbovenPanel.setLayout(new java.awt.CardLayout());

		logo.setIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/usim7.jpg"))); // NOI18N
		logo.setText("jLabel1");
		logo.setMinimumSize(new java.awt.Dimension(154, 371));
		logo.setPreferredSize(new java.awt.Dimension(154, 371));
		LinksbovenPanel.add(logo, "card2");

		DashboardPanel.setBorder(javax.swing.BorderFactory
				.createTitledBorder("Dashboard"));
		DashboardPanel.setName("Test"); // NOI18N
		DashboardPanel.setLayout(new java.awt.CardLayout());

		planningPanel.setBorder(javax.swing.BorderFactory
				.createTitledBorder("Lessenrooster"));

		jTextArea9.setColumns(20);
		jTextArea9.setFont(new java.awt.Font("Arial", 2, 18));
		jTextArea9.setRows(5);
		jTextArea9.setMargin(new java.awt.Insets(5, 5, 5, 5));
		jScrollPane27.setViewportView(jTextArea9);

		javax.swing.GroupLayout planningPanelLayout = new javax.swing.GroupLayout(
				planningPanel);
		planningPanel.setLayout(planningPanelLayout);
		planningPanelLayout
				.setHorizontalGroup(planningPanelLayout
						.createParallelGroup(
								javax.swing.GroupLayout.Alignment.LEADING)
						.addGroup(
								planningPanelLayout
										.createSequentialGroup()
										.addContainerGap()
										.addComponent(
												jScrollPane27,
												javax.swing.GroupLayout.DEFAULT_SIZE,
												323, Short.MAX_VALUE)
										.addContainerGap()));
		planningPanelLayout.setVerticalGroup(planningPanelLayout
				.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
				.addGroup(
						planningPanelLayout.createSequentialGroup()
								.addComponent(jScrollPane27,
										javax.swing.GroupLayout.PREFERRED_SIZE,
										dashboardHeight - 60,
										javax.swing.GroupLayout.PREFERRED_SIZE)
								.addContainerGap()));

		fooPanel.setBorder(javax.swing.BorderFactory
				.createTitledBorder("Deadlines"));

		jTextArea1.setColumns(20);
		jTextArea1.setFont(new java.awt.Font("Arial", 2, 18));
		jTextArea1.setRows(5);
		jTextArea1.setMargin(new java.awt.Insets(5, 5, 5, 5));
		jScrollPane2.setViewportView(jTextArea1);

		javax.swing.GroupLayout fooPanelLayout = new javax.swing.GroupLayout(
				fooPanel);
		fooPanel.setLayout(fooPanelLayout);
		fooPanelLayout.setHorizontalGroup(fooPanelLayout.createParallelGroup(
				javax.swing.GroupLayout.Alignment.LEADING).addGroup(
				fooPanelLayout.createSequentialGroup().addContainerGap()
						.addComponent(jScrollPane2,
								javax.swing.GroupLayout.DEFAULT_SIZE, 415,
								Short.MAX_VALUE).addContainerGap()));
		fooPanelLayout.setVerticalGroup(fooPanelLayout.createParallelGroup(
				javax.swing.GroupLayout.Alignment.LEADING).addGroup(
				fooPanelLayout.createSequentialGroup().addComponent(
						jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE,
						dashboardHeight - 60,
						javax.swing.GroupLayout.PREFERRED_SIZE)
						.addContainerGap()));
		javax.swing.GroupLayout startPanelLayout = new javax.swing.GroupLayout(
				startPanel);
		startPanel.setLayout(startPanelLayout);
		startPanelLayout
				.setHorizontalGroup(startPanelLayout
						.createParallelGroup(
								javax.swing.GroupLayout.Alignment.LEADING)
						.addGroup(
								javax.swing.GroupLayout.Alignment.TRAILING,
								startPanelLayout
										.createSequentialGroup()
										.addContainerGap()
										.addComponent(
												planningPanel,
												javax.swing.GroupLayout.DEFAULT_SIZE,
												javax.swing.GroupLayout.DEFAULT_SIZE,
												Short.MAX_VALUE)
										.addPreferredGap(
												javax.swing.LayoutStyle.ComponentPlacement.RELATED)
										.addComponent(
												fooPanel,
												javax.swing.GroupLayout.DEFAULT_SIZE,
												javax.swing.GroupLayout.DEFAULT_SIZE,
												Short.MAX_VALUE)
										.addContainerGap()));
		startPanelLayout
				.setVerticalGroup(startPanelLayout
						.createParallelGroup(
								javax.swing.GroupLayout.Alignment.LEADING)
						.addGroup(
								javax.swing.GroupLayout.Alignment.TRAILING,
								startPanelLayout
										.createSequentialGroup()
										.addGroup(
												startPanelLayout
														.createParallelGroup(
																javax.swing.GroupLayout.Alignment.TRAILING)
														.addComponent(
																fooPanel,
																javax.swing.GroupLayout.PREFERRED_SIZE,
																dashboardHeight - 30,
																javax.swing.GroupLayout.PREFERRED_SIZE)
														.addComponent(
																planningPanel,
																javax.swing.GroupLayout.PREFERRED_SIZE,
																dashboardHeight - 30,
																javax.swing.GroupLayout.PREFERRED_SIZE))
										.addContainerGap()));

		DashboardPanel.add(startPanel, "card2");

		vakInformatiePanel.setBorder(javax.swing.BorderFactory
				.createTitledBorder("Vakinformatie"));

		jScrollPane4
				.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);

		jTextArea2.setColumns(20);
		jTextArea2.setFont(new java.awt.Font("Arial", 1, 14));
		jTextArea2.setLineWrap(true);
		jTextArea2.setRows(10);
		jTextArea2.setText("\n\n\n\n\n");
		jTextArea2.setWrapStyleWord(true);
		jTextArea2.setMargin(new java.awt.Insets(5, 5, 5, 5));
		jScrollPane4.setViewportView(jTextArea2);

		javax.swing.GroupLayout vakInformatiePanelLayout = new javax.swing.GroupLayout(
				vakInformatiePanel);
		vakInformatiePanel.setLayout(vakInformatiePanelLayout);
		vakInformatiePanelLayout
				.setHorizontalGroup(vakInformatiePanelLayout
						.createParallelGroup(
								javax.swing.GroupLayout.Alignment.LEADING)
						.addGroup(
								vakInformatiePanelLayout
										.createSequentialGroup()
										.addContainerGap()
										.addComponent(
												jScrollPane4,
												javax.swing.GroupLayout.DEFAULT_SIZE,
												577, Short.MAX_VALUE)
										.addContainerGap()));
		vakInformatiePanelLayout
				.setVerticalGroup(vakInformatiePanelLayout
						.createParallelGroup(
								javax.swing.GroupLayout.Alignment.LEADING)
						.addGroup(
								vakInformatiePanelLayout
										.createSequentialGroup()
										.addComponent(
												jScrollPane4,
												javax.swing.GroupLayout.DEFAULT_SIZE,
												267, Short.MAX_VALUE)
										.addContainerGap()));

		lesGeverPanel.setBorder(javax.swing.BorderFactory
				.createTitledBorder("Lesgevers"));

		jScrollPane5.setViewportView(jList7);

		jButton2.setText("Toon Profiel");
		jButton2.addActionListener(new java.awt.event.ActionListener() {
			public void actionPerformed(java.awt.event.ActionEvent evt) {
				jButton2ActionPerformed(evt);
			}
		});

		javax.swing.GroupLayout lesGeverPanelLayout = new javax.swing.GroupLayout(
				lesGeverPanel);
		lesGeverPanel.setLayout(lesGeverPanelLayout);
		lesGeverPanelLayout
				.setHorizontalGroup(lesGeverPanelLayout
						.createParallelGroup(
								javax.swing.GroupLayout.Alignment.LEADING)
						.addGroup(
								lesGeverPanelLayout
										.createSequentialGroup()
										.addGroup(
												lesGeverPanelLayout
														.createParallelGroup(
																javax.swing.GroupLayout.Alignment.LEADING)
														.addGroup(
																lesGeverPanelLayout
																		.createSequentialGroup()
																		.addGap(
																				6,
																				6,
																				6)
																		.addComponent(
																				jScrollPane5,
																				javax.swing.GroupLayout.DEFAULT_SIZE,
																				577,
																				Short.MAX_VALUE))
														.addGroup(
																lesGeverPanelLayout
																		.createSequentialGroup()
																		.addContainerGap()
																		.addComponent(
																				jButton2,
																				javax.swing.GroupLayout.PREFERRED_SIZE,
																				166,
																				javax.swing.GroupLayout.PREFERRED_SIZE)))
										.addContainerGap()));
		lesGeverPanelLayout
				.setVerticalGroup(lesGeverPanelLayout
						.createParallelGroup(
								javax.swing.GroupLayout.Alignment.LEADING)
						.addGroup(
								javax.swing.GroupLayout.Alignment.TRAILING,
								lesGeverPanelLayout
										.createSequentialGroup()
										.addComponent(
												jScrollPane5,
												javax.swing.GroupLayout.DEFAULT_SIZE,
												266, Short.MAX_VALUE)
										.addPreferredGap(
												javax.swing.LayoutStyle.ComponentPlacement.RELATED)
										.addComponent(jButton2)
										.addContainerGap()));

		puntenPanel.setBorder(javax.swing.BorderFactory
				.createTitledBorder("Punten"));

		jTextArea4.setColumns(20);
		jTextArea4.setEditable(false);
		jTextArea4.setRows(5);
		jScrollPane6.setViewportView(jTextArea4);

		javax.swing.GroupLayout puntenPanelLayout = new javax.swing.GroupLayout(
				puntenPanel);
		puntenPanel.setLayout(puntenPanelLayout);
		puntenPanelLayout
				.setHorizontalGroup(puntenPanelLayout
						.createParallelGroup(
								javax.swing.GroupLayout.Alignment.LEADING)
						.addGroup(
								puntenPanelLayout
										.createSequentialGroup()
										.addContainerGap()
										.addComponent(
												jScrollPane6,
												javax.swing.GroupLayout.DEFAULT_SIZE,
												577, Short.MAX_VALUE)
										.addContainerGap()));
		puntenPanelLayout.setVerticalGroup(puntenPanelLayout
				.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
				.addGroup(
						puntenPanelLayout.createSequentialGroup().addComponent(
								jScrollPane6,
								javax.swing.GroupLayout.DEFAULT_SIZE, 268,
								Short.MAX_VALUE).addContainerGap()));

		jList1
				.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);
		jList1.setSelectedIndex(0);
		jScrollPane23.setViewportView(jList1);

		javax.swing.GroupLayout vakkenPanelLayout = new javax.swing.GroupLayout(
				vakkenPanel);
		vakkenPanel.setLayout(vakkenPanelLayout);
		vakkenPanelLayout
				.setHorizontalGroup(vakkenPanelLayout
						.createParallelGroup(
								javax.swing.GroupLayout.Alignment.LEADING)
						.addGroup(
								vakkenPanelLayout
										.createSequentialGroup()
										.addContainerGap()
										.addComponent(
												jScrollPane23,
												javax.swing.GroupLayout.PREFERRED_SIZE,
												187,
												javax.swing.GroupLayout.PREFERRED_SIZE)
										.addPreferredGap(
												javax.swing.LayoutStyle.ComponentPlacement.RELATED)
										.addGroup(
												vakkenPanelLayout
														.createParallelGroup(
																javax.swing.GroupLayout.Alignment.LEADING)
														.addComponent(
																vakInformatiePanel,
																javax.swing.GroupLayout.DEFAULT_SIZE,
																javax.swing.GroupLayout.DEFAULT_SIZE,
																Short.MAX_VALUE)
														.addComponent(
																puntenPanel,
																javax.swing.GroupLayout.DEFAULT_SIZE,
																javax.swing.GroupLayout.DEFAULT_SIZE,
																Short.MAX_VALUE)
														.addComponent(
																lesGeverPanel,
																javax.swing.GroupLayout.DEFAULT_SIZE,
																javax.swing.GroupLayout.DEFAULT_SIZE,
																Short.MAX_VALUE))
										.addContainerGap()));
		vakkenPanelLayout
				.setVerticalGroup(vakkenPanelLayout
						.createParallelGroup(
								javax.swing.GroupLayout.Alignment.LEADING)
						.addGroup(
								vakkenPanelLayout
										.createSequentialGroup()
										.addGroup(
												vakkenPanelLayout
														.createParallelGroup(
																javax.swing.GroupLayout.Alignment.LEADING)
														.addGroup(
																vakkenPanelLayout
																		.createSequentialGroup()
																		.addComponent(
																				vakInformatiePanel,
																				javax.swing.GroupLayout.PREFERRED_SIZE,
																				javax.swing.GroupLayout.DEFAULT_SIZE,
																				javax.swing.GroupLayout.PREFERRED_SIZE)
																		.addPreferredGap(
																				javax.swing.LayoutStyle.ComponentPlacement.RELATED)
																		.addComponent(
																				lesGeverPanel,
																				javax.swing.GroupLayout.DEFAULT_SIZE,
																				javax.swing.GroupLayout.DEFAULT_SIZE,
																				Short.MAX_VALUE)
																		.addPreferredGap(
																				javax.swing.LayoutStyle.ComponentPlacement.RELATED)
																		.addComponent(
																				puntenPanel,
																				javax.swing.GroupLayout.DEFAULT_SIZE,
																				javax.swing.GroupLayout.DEFAULT_SIZE,
																				Short.MAX_VALUE))
														.addGroup(
																vakkenPanelLayout
																		.createSequentialGroup()
																		.addGap(
																				6,
																				6,
																				6)
																		.addComponent(
																				jScrollPane23,
																				javax.swing.GroupLayout.PREFERRED_SIZE,
																				dashboardHeight - 60,
																				javax.swing.GroupLayout.PREFERRED_SIZE)))
										.addContainerGap()));

		DashboardPanel.add(vakkenPanel, "card3");

		smartfolderPanel = new SmartFolderPanel();

		DashboardPanel.add(smartfolderPanel, "card4");

		jScrollPane1.setBorder(null);
		jScrollPane1.setPreferredSize(new java.awt.Dimension(258, 148));

		jList5.setBorder(javax.swing.BorderFactory.createEtchedBorder());
		jList5
				.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);
		jList5.setPreferredSize(new java.awt.Dimension(50, 94));
		jScrollPane1.setViewportView(jList5);

		jPanel1.setBorder(javax.swing.BorderFactory
				.createTitledBorder("Beschrijving"));

		jTextArea5.setColumns(20);
		jTextArea5.setRows(5);
		jTextArea5.setMargin(new java.awt.Insets(5, 5, 5, 5));
		jScrollPane10.setViewportView(jTextArea5);

		javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(
				jPanel1);
		jPanel1.setLayout(jPanel1Layout);
		jPanel1Layout.setHorizontalGroup(jPanel1Layout.createParallelGroup(
				javax.swing.GroupLayout.Alignment.LEADING).addGroup(
				javax.swing.GroupLayout.Alignment.TRAILING,
				jPanel1Layout.createSequentialGroup().addContainerGap()
						.addComponent(jScrollPane10,
								javax.swing.GroupLayout.DEFAULT_SIZE, 306,
								Short.MAX_VALUE).addContainerGap()));
		jPanel1Layout.setVerticalGroup(jPanel1Layout.createParallelGroup(
				javax.swing.GroupLayout.Alignment.LEADING).addGroup(
				jPanel1Layout.createSequentialGroup().addComponent(
						jScrollPane10, javax.swing.GroupLayout.DEFAULT_SIZE,
						204, Short.MAX_VALUE).addContainerGap()));

		jPanel4.setBorder(javax.swing.BorderFactory
				.createTitledBorder("Deadlines"));

		jTextArea6.setColumns(20);
		jTextArea6.setRows(5);
		jScrollPane11.setViewportView(jTextArea6);

		javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(
				jPanel4);
		jPanel4.setLayout(jPanel4Layout);
		jPanel4Layout.setHorizontalGroup(jPanel4Layout.createParallelGroup(
				javax.swing.GroupLayout.Alignment.LEADING).addGroup(
				jPanel4Layout.createSequentialGroup().addContainerGap()
						.addComponent(jScrollPane11,
								javax.swing.GroupLayout.DEFAULT_SIZE, 306,
								Short.MAX_VALUE).addContainerGap()));
		jPanel4Layout.setVerticalGroup(jPanel4Layout.createParallelGroup(
				javax.swing.GroupLayout.Alignment.LEADING).addGroup(
				jPanel4Layout.createSequentialGroup().addComponent(
						jScrollPane11, javax.swing.GroupLayout.DEFAULT_SIZE,
						201, Short.MAX_VALUE).addContainerGap()));

		jPanel5.setBorder(javax.swing.BorderFactory
				.createTitledBorder("Resultaten"));

		jTextArea7.setColumns(20);
		jTextArea7.setRows(5);
		jTextArea7.setMargin(new java.awt.Insets(5, 5, 5, 5));
		jScrollPane25.setViewportView(jTextArea7);

		javax.swing.GroupLayout jPanel5Layout = new javax.swing.GroupLayout(
				jPanel5);
		jPanel5.setLayout(jPanel5Layout);
		jPanel5Layout.setHorizontalGroup(jPanel5Layout.createParallelGroup(
				javax.swing.GroupLayout.Alignment.LEADING).addGroup(
				jPanel5Layout.createSequentialGroup().addContainerGap()
						.addComponent(jScrollPane25,
								javax.swing.GroupLayout.DEFAULT_SIZE, 311,
								Short.MAX_VALUE).addContainerGap()));
		jPanel5Layout.setVerticalGroup(jPanel5Layout.createParallelGroup(
				javax.swing.GroupLayout.Alignment.LEADING).addGroup(
				jPanel5Layout.createSequentialGroup().addContainerGap()
						.addComponent(jScrollPane25,
								javax.swing.GroupLayout.DEFAULT_SIZE, 195,
								Short.MAX_VALUE).addContainerGap()));

		jPanel6.setBorder(javax.swing.BorderFactory
				.createTitledBorder("Planning"));

		jTextArea3.setColumns(20);
		jTextArea3.setRows(5);
		jTextArea3.setMargin(new java.awt.Insets(5, 5, 5, 5));
		jScrollPane24.setViewportView(jTextArea3);

		javax.swing.GroupLayout jPanel6Layout = new javax.swing.GroupLayout(
				jPanel6);
		jPanel6.setLayout(jPanel6Layout);
		jPanel6Layout.setHorizontalGroup(jPanel6Layout.createParallelGroup(
				javax.swing.GroupLayout.Alignment.LEADING).addGroup(
				javax.swing.GroupLayout.Alignment.TRAILING,
				jPanel6Layout.createSequentialGroup().addContainerGap()
						.addComponent(jScrollPane24,
								javax.swing.GroupLayout.DEFAULT_SIZE, 311,
								Short.MAX_VALUE).addContainerGap()));
		jPanel6Layout.setVerticalGroup(jPanel6Layout.createParallelGroup(
				javax.swing.GroupLayout.Alignment.LEADING).addGroup(
				jPanel6Layout.createSequentialGroup().addComponent(
						jScrollPane24, javax.swing.GroupLayout.DEFAULT_SIZE,
						204, Short.MAX_VALUE).addContainerGap()));

		jPanel7.setBorder(javax.swing.BorderFactory
				.createTitledBorder("Bijkomende informatie"));

		jTextArea8.setColumns(20);
		jTextArea8.setRows(5);
		jTextArea8.setMargin(new java.awt.Insets(5, 5, 5, 5));
		jScrollPane26.setViewportView(jTextArea8);

		javax.swing.GroupLayout jPanel7Layout = new javax.swing.GroupLayout(
				jPanel7);
		jPanel7.setLayout(jPanel7Layout);
		jPanel7Layout.setHorizontalGroup(jPanel7Layout.createParallelGroup(
				javax.swing.GroupLayout.Alignment.LEADING).addGroup(
				jPanel7Layout.createSequentialGroup().addContainerGap()
						.addComponent(jScrollPane26,
								javax.swing.GroupLayout.DEFAULT_SIZE, 317,
								Short.MAX_VALUE)));
		jPanel7Layout.setVerticalGroup(jPanel7Layout.createParallelGroup(
				javax.swing.GroupLayout.Alignment.LEADING).addGroup(
				jPanel7Layout.createSequentialGroup().addComponent(
						jScrollPane26, javax.swing.GroupLayout.PREFERRED_SIZE,
						230, javax.swing.GroupLayout.PREFERRED_SIZE)
						.addContainerGap()));

		jPanel15.setBorder(javax.swing.BorderFactory
				.createTitledBorder("Teamgenoten"));

		jScrollPane12.setViewportView(jList6);

		jButton18.setText("Toon");
		jButton18.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton18ActionPerformed(evt);
            }
        });
		
		javax.swing.GroupLayout jPanel15Layout = new javax.swing.GroupLayout(
				jPanel15);
		jPanel15.setLayout(jPanel15Layout);
		jPanel15Layout
				.setHorizontalGroup(jPanel15Layout
						.createParallelGroup(
								javax.swing.GroupLayout.Alignment.LEADING)
						.addGroup(
								jPanel15Layout
										.createSequentialGroup()
										.addContainerGap()
										.addGroup(
												jPanel15Layout
														.createParallelGroup(
																javax.swing.GroupLayout.Alignment.LEADING)
														.addComponent(
																jScrollPane12,
																javax.swing.GroupLayout.DEFAULT_SIZE,
																306,
																Short.MAX_VALUE)
														.addComponent(jButton18))
										.addContainerGap()));
		jPanel15Layout.setVerticalGroup(jPanel15Layout.createParallelGroup(
				javax.swing.GroupLayout.Alignment.LEADING).addGroup(
				javax.swing.GroupLayout.Alignment.TRAILING,
				jPanel15Layout.createSequentialGroup().addComponent(
						jScrollPane12, javax.swing.GroupLayout.DEFAULT_SIZE,
						396, Short.MAX_VALUE).addPreferredGap(
						javax.swing.LayoutStyle.ComponentPlacement.RELATED)
						.addComponent(jButton18).addContainerGap()));

		javax.swing.GroupLayout projectenPanelLayout = new javax.swing.GroupLayout(
				projectenPanel);
		projectenPanel.setLayout(projectenPanelLayout);
		projectenPanelLayout
				.setHorizontalGroup(projectenPanelLayout
						.createParallelGroup(
								javax.swing.GroupLayout.Alignment.LEADING)
						.addGroup(
								projectenPanelLayout
										.createSequentialGroup()
										.addContainerGap()
										.addComponent(
												jScrollPane1,
												javax.swing.GroupLayout.PREFERRED_SIZE,
												115,
												javax.swing.GroupLayout.PREFERRED_SIZE)
										.addPreferredGap(
												javax.swing.LayoutStyle.ComponentPlacement.RELATED)
										.addGroup(
												projectenPanelLayout
														.createParallelGroup(
																javax.swing.GroupLayout.Alignment.TRAILING)
														.addComponent(
																jPanel1,
																javax.swing.GroupLayout.DEFAULT_SIZE,
																javax.swing.GroupLayout.DEFAULT_SIZE,
																Short.MAX_VALUE)
														.addComponent(
																jPanel4,
																javax.swing.GroupLayout.DEFAULT_SIZE,
																javax.swing.GroupLayout.DEFAULT_SIZE,
																Short.MAX_VALUE)
														.addComponent(
																jPanel15,
																javax.swing.GroupLayout.DEFAULT_SIZE,
																javax.swing.GroupLayout.DEFAULT_SIZE,
																Short.MAX_VALUE))
										.addPreferredGap(
												javax.swing.LayoutStyle.ComponentPlacement.RELATED)
										.addGroup(
												projectenPanelLayout
														.createParallelGroup(
																javax.swing.GroupLayout.Alignment.LEADING)
														.addComponent(
																jPanel7,
																javax.swing.GroupLayout.DEFAULT_SIZE,
																javax.swing.GroupLayout.DEFAULT_SIZE,
																Short.MAX_VALUE)
														.addComponent(
																jPanel6,
																javax.swing.GroupLayout.Alignment.TRAILING,
																javax.swing.GroupLayout.DEFAULT_SIZE,
																javax.swing.GroupLayout.DEFAULT_SIZE,
																Short.MAX_VALUE)
														.addComponent(
																jPanel5,
																javax.swing.GroupLayout.DEFAULT_SIZE,
																javax.swing.GroupLayout.DEFAULT_SIZE,
																Short.MAX_VALUE))
										.addContainerGap()));
		projectenPanelLayout
				.setVerticalGroup(projectenPanelLayout
						.createParallelGroup(
								javax.swing.GroupLayout.Alignment.LEADING)
						.addGroup(
								javax.swing.GroupLayout.Alignment.TRAILING,
								projectenPanelLayout
										.createSequentialGroup()
										.addGroup(
												projectenPanelLayout
														.createParallelGroup(
																javax.swing.GroupLayout.Alignment.TRAILING)
														.addGroup(
																projectenPanelLayout
																		.createSequentialGroup()
																		.addContainerGap()
																		.addComponent(
																				jScrollPane1,
																				javax.swing.GroupLayout.PREFERRED_SIZE,
																				dashboardHeight - 60,
																				javax.swing.GroupLayout.PREFERRED_SIZE))
														.addGroup(
																projectenPanelLayout
																		.createSequentialGroup()
																		.addGroup(
																				projectenPanelLayout
																						.createParallelGroup(
																								javax.swing.GroupLayout.Alignment.TRAILING,
																								false)
																						.addComponent(
																								jPanel6,
																								javax.swing.GroupLayout.DEFAULT_SIZE,
																								javax.swing.GroupLayout.DEFAULT_SIZE,
																								Short.MAX_VALUE)
																						.addComponent(
																								jPanel1,
																								javax.swing.GroupLayout.DEFAULT_SIZE,
																								javax.swing.GroupLayout.DEFAULT_SIZE,
																								Short.MAX_VALUE))
																		.addPreferredGap(
																				javax.swing.LayoutStyle.ComponentPlacement.RELATED)
																		.addGroup(
																				projectenPanelLayout
																						.createParallelGroup(
																								javax.swing.GroupLayout.Alignment.LEADING)
																						.addComponent(
																								jPanel5,
																								javax.swing.GroupLayout.Alignment.TRAILING,
																								javax.swing.GroupLayout.DEFAULT_SIZE,
																								javax.swing.GroupLayout.DEFAULT_SIZE,
																								Short.MAX_VALUE)
																						.addComponent(
																								jPanel4,
																								javax.swing.GroupLayout.Alignment.TRAILING,
																								javax.swing.GroupLayout.DEFAULT_SIZE,
																								javax.swing.GroupLayout.DEFAULT_SIZE,
																								Short.MAX_VALUE))
																		.addPreferredGap(
																				javax.swing.LayoutStyle.ComponentPlacement.RELATED)
																		.addGroup(
																				projectenPanelLayout
																						.createParallelGroup(
																								javax.swing.GroupLayout.Alignment.LEADING)
																						.addComponent(
																								jPanel7,
																								javax.swing.GroupLayout.PREFERRED_SIZE,
																								300,
																								javax.swing.GroupLayout.PREFERRED_SIZE)
																						.addComponent(
																								jPanel15,
																								javax.swing.GroupLayout.PREFERRED_SIZE,
																								300,
																								javax.swing.GroupLayout.PREFERRED_SIZE))))
										.addContainerGap()));

		DashboardPanel.add(projectenPanel, "card5");

		/*
		 * label1.setText("iCalender");
		 * 
		 * javax.swing.GroupLayout iCalenderPanelLayout = new
		 * javax.swing.GroupLayout(iCalenderPanel);
		 * iCalenderPanel.setLayout(iCalenderPanelLayout);
		 * iCalenderPanelLayout.setHorizontalGroup(
		 * iCalenderPanelLayout.createParallelGroup
		 * (javax.swing.GroupLayout.Alignment.LEADING)
		 * .addGroup(iCalenderPanelLayout.createSequentialGroup() .addGap(49,
		 * 49, 49) .addComponent(label1, javax.swing.GroupLayout.PREFERRED_SIZE,
		 * javax.swing.GroupLayout.DEFAULT_SIZE,
		 * javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap(701,
		 * Short.MAX_VALUE)) ); iCalenderPanelLayout.setVerticalGroup(
		 * iCalenderPanelLayout
		 * .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
		 * .addGroup(iCalenderPanelLayout.createSequentialGroup()
		 * .addContainerGap() .addComponent(label1,
		 * javax.swing.GroupLayout.DEFAULT_SIZE,
		 * javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGap(917,
		 * 917, 917)) );
		 */

		JCalendarDemo test = new JCalendarDemo();
		test.setCalendarPanel(iCalenderPanel);
		test.init();
		iCalenderPanel = test.getCalendarPanel();
		iCalenderPanel
				.setBorder(javax.swing.BorderFactory.createEtchedBorder());

		DashboardPanel.add(iCalenderPanel, "card6");

		jTextPane1.setMargin(new java.awt.Insets(5, 5, 5, 5));
		jScrollPane14.setViewportView(jTextPane1);

		jList8.setModel(makeContactListModel());
		jList8
				.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);
		jList8.setSelectedIndex(setSelectedValue());
		jList8
				.addListSelectionListener(new javax.swing.event.ListSelectionListener() {
					public void valueChanged(
							javax.swing.event.ListSelectionEvent evt) {
						jList8ValueChanged(evt);
					}
				});
		jScrollPane15.setViewportView(jList8);

		button3.setLabel("Verwijder contact");
		button3.addActionListener(new java.awt.event.ActionListener() {
			public void actionPerformed(java.awt.event.ActionEvent evt) {
				button3addContactAction(evt);
			}
		});

		jScrollPane21.setViewportView(jTextPane8);

		jLabel15.setText("ContactPersonen");

		jLabel16.setText("Persoonlijke informatie");

		jLabel52.setText("Geen contact informatie");

		jButton15.setText("Voeg toe");
		jButton15.addActionListener(new java.awt.event.ActionListener() {
			public void actionPerformed(java.awt.event.ActionEvent evt) {
				jButton15ActionPerformed(evt);
			}
		});

		jButton16.setText("Bewerk");
		jButton16.addActionListener(new java.awt.event.ActionListener() {
			public void actionPerformed(java.awt.event.ActionEvent evt) {
				jButton16ActionPerformed(evt);
			}
		});

		jButton17.setText("Verwijder");
		jButton17.addActionListener(new java.awt.event.ActionListener() {
			public void actionPerformed(java.awt.event.ActionEvent evt) {
				jButton17ActionPerformed(evt);
			}
		});

		javax.swing.GroupLayout contactenPanelLayout = new javax.swing.GroupLayout(
				contactenPanel);
		contactenPanel.setLayout(contactenPanelLayout);
		contactenPanelLayout
				.setHorizontalGroup(contactenPanelLayout
						.createParallelGroup(
								javax.swing.GroupLayout.Alignment.LEADING)
						.addGroup(
								contactenPanelLayout
										.createSequentialGroup()
										.addContainerGap()
										.addGroup(
												contactenPanelLayout
														.createParallelGroup(
																javax.swing.GroupLayout.Alignment.LEADING)
														.addComponent(
																button3,
																javax.swing.GroupLayout.PREFERRED_SIZE,
																0,
																javax.swing.GroupLayout.PREFERRED_SIZE)
														.addGroup(
																contactenPanelLayout
																		.createSequentialGroup()
																		.addGroup(
																				contactenPanelLayout
																						.createParallelGroup(
																								javax.swing.GroupLayout.Alignment.LEADING)
																						.addComponent(
																								jScrollPane15,
																								javax.swing.GroupLayout.PREFERRED_SIZE,
																								318,
																								javax.swing.GroupLayout.PREFERRED_SIZE)
																						.addComponent(
																								jLabel15))
																		.addGap(
																				10,
																				10,
																				10)
																		.addGroup(
																				contactenPanelLayout
																						.createParallelGroup(
																								javax.swing.GroupLayout.Alignment.LEADING)
																						.addComponent(
																								jLabel52)
																						.addComponent(
																								jLabel16)
																						.addComponent(
																								jScrollPane14,
																								javax.swing.GroupLayout.DEFAULT_SIZE,
																								464,
																								Short.MAX_VALUE)
																						.addComponent(
																								jScrollPane21,
																								javax.swing.GroupLayout.DEFAULT_SIZE,
																								464,
																								Short.MAX_VALUE)))
														.addGroup(
																contactenPanelLayout
																		.createSequentialGroup()
																		.addComponent(
																				jButton15)
																		.addPreferredGap(
																				javax.swing.LayoutStyle.ComponentPlacement.RELATED)
																		.addComponent(
																				jButton16)
																		.addPreferredGap(
																				javax.swing.LayoutStyle.ComponentPlacement.RELATED)
																		.addComponent(
																				jButton17)))
										.addContainerGap()));
		contactenPanelLayout
				.setVerticalGroup(contactenPanelLayout
						.createParallelGroup(
								javax.swing.GroupLayout.Alignment.LEADING)
						.addGroup(
								contactenPanelLayout
										.createSequentialGroup()
										.addContainerGap(15, Short.MAX_VALUE)
										.addGroup(
												contactenPanelLayout
														.createParallelGroup(
																javax.swing.GroupLayout.Alignment.BASELINE)
														.addComponent(jLabel15)
														.addComponent(jLabel16))
										.addPreferredGap(
												javax.swing.LayoutStyle.ComponentPlacement.RELATED)
										.addGroup(
												contactenPanelLayout
														.createParallelGroup(
																javax.swing.GroupLayout.Alignment.TRAILING,
																false)
														.addGroup(
																contactenPanelLayout
																		.createSequentialGroup()
																		.addComponent(
																				jScrollPane14,
																				javax.swing.GroupLayout.PREFERRED_SIZE,
																				347,
																				javax.swing.GroupLayout.PREFERRED_SIZE)
																		.addPreferredGap(
																				javax.swing.LayoutStyle.ComponentPlacement.RELATED)
																		.addComponent(
																				jLabel52)
																		.addPreferredGap(
																				javax.swing.LayoutStyle.ComponentPlacement.RELATED,
																				javax.swing.GroupLayout.DEFAULT_SIZE,
																				Short.MAX_VALUE)
																		.addComponent(
																				jScrollPane21,
																				javax.swing.GroupLayout.PREFERRED_SIZE,
																				251,
																				javax.swing.GroupLayout.PREFERRED_SIZE))
														.addComponent(
																jScrollPane15,
																javax.swing.GroupLayout.PREFERRED_SIZE,
																624,
																javax.swing.GroupLayout.PREFERRED_SIZE))
										.addGap(18, 18, 18)
										.addGroup(
												contactenPanelLayout
														.createParallelGroup(
																javax.swing.GroupLayout.Alignment.BASELINE)
														.addComponent(jButton15)
														.addComponent(jButton16)
														.addComponent(jButton17))
										.addGap(40, 40, 40)
										.addComponent(
												button3,
												javax.swing.GroupLayout.PREFERRED_SIZE,
												javax.swing.GroupLayout.DEFAULT_SIZE,
												javax.swing.GroupLayout.PREFERRED_SIZE)
										.addGap(186, 186, 186)));

		DashboardPanel.add(contactenPanel, "card7");

		startButton.setIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/Icons/45.png"))); // NOI18N
		startButton.setSelected(true);
		startButton.setText("Start");
		startButton.setBorder(javax.swing.BorderFactory.createEtchedBorder());
		startButton.setIconTextGap(10);
		startButton.addActionListener(new java.awt.event.ActionListener() {
			public void actionPerformed(java.awt.event.ActionEvent evt) {
				startButtonActionPerformed(evt);
			}
		});

		vakkenButton.setIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/Icons/18.png"))); // NOI18N
		vakkenButton.setText("Vakken");
		vakkenButton.setBorder(javax.swing.BorderFactory.createEtchedBorder());
		vakkenButton.setIconTextGap(10);
		vakkenButton.addActionListener(new java.awt.event.ActionListener() {
			public void actionPerformed(java.awt.event.ActionEvent evt) {
				vakkenButtonActionPerformed(evt);
			}
		});

		smartfoldersButton.setIcon(new javax.swing.ImageIcon(getClass()
				.getResource("/Icons/46.png"))); // NOI18N
		smartfoldersButton.setText("Smartfolders");
		smartfoldersButton.setBorder(javax.swing.BorderFactory
				.createEtchedBorder());
		smartfoldersButton.setIconTextGap(10);
		smartfoldersButton
				.addActionListener(new java.awt.event.ActionListener() {
					public void actionPerformed(java.awt.event.ActionEvent evt) {
						smartfoldersButtonActionPerformed(evt);
					}
				});

		projectenButton.setIcon(new javax.swing.ImageIcon(getClass()
				.getResource("/Icons/29.png"))); // NOI18N
		projectenButton.setText("Projecten");
		projectenButton.setBorder(javax.swing.BorderFactory
				.createEtchedBorder());
		projectenButton.setIconTextGap(10);
		projectenButton.addActionListener(new java.awt.event.ActionListener() {
			public void actionPerformed(java.awt.event.ActionEvent evt) {
				projectenButtonActionPerformed(evt);
			}
		});

		iCalenderButton.setIcon(new javax.swing.ImageIcon(getClass()
				.getResource("/Icons/25.png"))); // NOI18N
		iCalenderButton.setText("Kalender");
		iCalenderButton.setBorder(javax.swing.BorderFactory
				.createEtchedBorder());
		iCalenderButton.setIconTextGap(10);
		iCalenderButton.addActionListener(new java.awt.event.ActionListener() {
			public void actionPerformed(java.awt.event.ActionEvent evt) {
				iCalenderButtonActionPerformed(evt);
			}
		});

		contactenButton.setIcon(new javax.swing.ImageIcon(getClass()
				.getResource("/Icons/06.png"))); // NOI18N
		contactenButton.setText("Contacten");
		contactenButton.setBorder(javax.swing.BorderFactory
				.createEtchedBorder());
		contactenButton.setIconTextGap(10);
		contactenButton.addActionListener(new java.awt.event.ActionListener() {
			public void actionPerformed(java.awt.event.ActionEvent evt) {
				contactenButtonActionPerformed(evt);
			}
		});

		javax.swing.GroupLayout AchtergrondPanelLayout = new javax.swing.GroupLayout(
				AchtergrondPanel);
		AchtergrondPanel.setLayout(AchtergrondPanelLayout);
		AchtergrondPanelLayout
				.setHorizontalGroup(AchtergrondPanelLayout
						.createParallelGroup(
								javax.swing.GroupLayout.Alignment.LEADING)
						.addGroup(
								AchtergrondPanelLayout
										.createSequentialGroup()
										.addContainerGap()
										.addGroup(
												AchtergrondPanelLayout
														.createParallelGroup(
																javax.swing.GroupLayout.Alignment.LEADING)
														.addGroup(
																AchtergrondPanelLayout
																		.createParallelGroup(
																				javax.swing.GroupLayout.Alignment.LEADING,
																				false)
																		.addComponent(
																				smartfoldersButton,
																				javax.swing.GroupLayout.DEFAULT_SIZE,
																				javax.swing.GroupLayout.DEFAULT_SIZE,
																				Short.MAX_VALUE)
																		.addComponent(
																				startButton,
																				javax.swing.GroupLayout.DEFAULT_SIZE,
																				javax.swing.GroupLayout.DEFAULT_SIZE,
																				Short.MAX_VALUE)
																		.addComponent(
																				vakkenButton,
																				javax.swing.GroupLayout.DEFAULT_SIZE,
																				javax.swing.GroupLayout.DEFAULT_SIZE,
																				Short.MAX_VALUE)
																		.addComponent(
																				projectenButton,
																				javax.swing.GroupLayout.DEFAULT_SIZE,
																				158,
																				Short.MAX_VALUE))
														.addComponent(
																iCalenderButton)
														.addComponent(
																contactenButton)
														.addComponent(
																LinksbovenPanel,
																javax.swing.GroupLayout.PREFERRED_SIZE,
																javax.swing.GroupLayout.DEFAULT_SIZE,
																javax.swing.GroupLayout.PREFERRED_SIZE))
										.addPreferredGap(
												javax.swing.LayoutStyle.ComponentPlacement.RELATED)
										.addComponent(
												DashboardPanel,
												javax.swing.GroupLayout.DEFAULT_SIZE,
												822, Short.MAX_VALUE)
										.addContainerGap()));

		AchtergrondPanelLayout.linkSize(javax.swing.SwingConstants.HORIZONTAL,
				new java.awt.Component[] { contactenButton, iCalenderButton,
						projectenButton });

		AchtergrondPanelLayout
				.setVerticalGroup(AchtergrondPanelLayout
						.createParallelGroup(
								javax.swing.GroupLayout.Alignment.LEADING)
						.addGroup(
								AchtergrondPanelLayout
										.createSequentialGroup()
										.addGroup(
												AchtergrondPanelLayout
														.createParallelGroup(
																javax.swing.GroupLayout.Alignment.LEADING)
														.addGroup(
																AchtergrondPanelLayout
																		.createSequentialGroup()
																		.addContainerGap()
																		.addComponent(
																				LinksbovenPanel,
																				javax.swing.GroupLayout.PREFERRED_SIZE,
																				javax.swing.GroupLayout.DEFAULT_SIZE,
																				javax.swing.GroupLayout.PREFERRED_SIZE)
																		.addGap(
																				10,
																				10,
																				10)
																		.addComponent(
																				startButton,
																				javax.swing.GroupLayout.PREFERRED_SIZE,
																				41,
																				javax.swing.GroupLayout.PREFERRED_SIZE)
																		.addPreferredGap(
																				javax.swing.LayoutStyle.ComponentPlacement.RELATED)
																		.addComponent(
																				vakkenButton,
																				javax.swing.GroupLayout.PREFERRED_SIZE,
																				32,
																				javax.swing.GroupLayout.PREFERRED_SIZE)
																		.addPreferredGap(
																				javax.swing.LayoutStyle.ComponentPlacement.RELATED)
																		.addComponent(
																				smartfoldersButton,
																				javax.swing.GroupLayout.PREFERRED_SIZE,
																				37,
																				javax.swing.GroupLayout.PREFERRED_SIZE)
																		.addPreferredGap(
																				javax.swing.LayoutStyle.ComponentPlacement.RELATED)
																		.addComponent(
																				projectenButton,
																				javax.swing.GroupLayout.PREFERRED_SIZE,
																				37,
																				javax.swing.GroupLayout.PREFERRED_SIZE)
																		.addPreferredGap(
																				javax.swing.LayoutStyle.ComponentPlacement.RELATED)
																		.addComponent(
																				iCalenderButton)
																		.addPreferredGap(
																				javax.swing.LayoutStyle.ComponentPlacement.RELATED)
																		.addComponent(
																				contactenButton))
														.addComponent(
																DashboardPanel,
																javax.swing.GroupLayout.Alignment.TRAILING,
																javax.swing.GroupLayout.PREFERRED_SIZE,
																dashboardHeight,
																javax.swing.GroupLayout.PREFERRED_SIZE))
										.addContainerGap()));

		AchtergrondPanelLayout.linkSize(javax.swing.SwingConstants.VERTICAL,
				new java.awt.Component[] { smartfoldersButton, startButton,
						vakkenButton });

		AchtergrondPanelLayout.linkSize(javax.swing.SwingConstants.VERTICAL,
				new java.awt.Component[] { contactenButton, iCalenderButton,
						projectenButton });

		jMenuBar1.setBorder(javax.swing.BorderFactory.createEtchedBorder());

		jMenu1.setText("Start");

		jMenu3.setIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/Icons/21.png"))); // NOI18N
		jMenu3.setText("Bestand");

		jMenuItem3.setIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/Icons/02.png"))); // NOI18N
		jMenuItem3.setText("Nieuw");
		jMenuItem3.addChangeListener(new javax.swing.event.ChangeListener() {
			public void stateChanged(javax.swing.event.ChangeEvent evt) {
				jMenuItem3StateChanged(evt);
			}
		});
		jMenuItem3.addActionListener(new java.awt.event.ActionListener() {
			public void actionPerformed(java.awt.event.ActionEvent evt) {
				jMenuItem3ActionPerformed(evt);
			}
		});
		jMenu3.add(jMenuItem3);

		jMenu13.setIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/Icons/03.png"))); // NOI18N
		jMenu13.setText("Bewerk");
		jMenu13.addMouseListener(new java.awt.event.MouseAdapter() {
			public void mouseClicked(java.awt.event.MouseEvent evt) {
				jMenu13MouseClicked(evt);
			}

			public void mouseEntered(java.awt.event.MouseEvent evt) {
				jMenu13MouseEntered(evt);
			}

			public void mouseExited(java.awt.event.MouseEvent evt) {
				jMenu13MouseExited(evt);
			}
		});
		jMenu13.addChangeListener(new javax.swing.event.ChangeListener() {
			public void stateChanged(javax.swing.event.ChangeEvent evt) {
				jMenu13StateChanged(evt);
			}
		});
		jMenu3.add(jMenu13);

		jMenu12.setIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/Icons/01.png"))); // NOI18N
		jMenu12.setText("Verwijder");
		jMenu12.addMouseListener(new java.awt.event.MouseAdapter() {
			public void mouseClicked(java.awt.event.MouseEvent evt) {
				jMenu12MouseClicked(evt);
			}

			public void mouseEntered(java.awt.event.MouseEvent evt) {
				jMenu12MouseEntered(evt);
			}

			public void mouseExited(java.awt.event.MouseEvent evt) {
				jMenu12MouseExited(evt);
			}
		});
		jMenu12.addChangeListener(new javax.swing.event.ChangeListener() {
			public void stateChanged(javax.swing.event.ChangeEvent evt) {
				jMenu12StateChanged(evt);
			}
		});
		jMenu12.addMouseMotionListener(new java.awt.event.MouseMotionAdapter() {
			public void mouseMoved(java.awt.event.MouseEvent evt) {
				jMenu12MouseMoved(evt);
			}
		});
		jMenu12.addActionListener(new java.awt.event.ActionListener() {
			public void actionPerformed(java.awt.event.ActionEvent evt) {
				jMenu12ActionPerformed(evt);
			}
		});
		jMenu3.add(jMenu12);

		jMenu1.add(jMenu3);

		jMenu4.setIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/Icons/19.png"))); // NOI18N
		jMenu4.setText("Vak");
		jMenu4.addMouseListener(new java.awt.event.MouseAdapter() {
			public void mouseEntered(java.awt.event.MouseEvent evt) {
				jMenu4MouseEntered(evt);
			}
		});

		jMenuItem6.setIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/Icons/02.png"))); // NOI18N
		jMenuItem6.setText("Nieuw");
		jMenuItem6.addActionListener(new java.awt.event.ActionListener() {
			public void actionPerformed(java.awt.event.ActionEvent evt) {
				jMenuItem6ActionPerformed(evt);
			}
		});
		jMenu4.add(jMenuItem6);

		jMenu6.setIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/Icons/03.png"))); // NOI18N
		jMenu6.setText("Bewerk");
		jMenu6.addMouseListener(new java.awt.event.MouseAdapter() {
			public void mouseEntered(java.awt.event.MouseEvent evt) {
				jMenu6MouseEntered(evt);
			}

			public void mouseExited(java.awt.event.MouseEvent evt) {
				jMenu6MouseExited(evt);
			}
		});
		jMenu6.addChangeListener(new javax.swing.event.ChangeListener() {
			public void stateChanged(javax.swing.event.ChangeEvent evt) {
				jMenu6StateChanged(evt);
			}
		});
		jMenu6.addMenuListener(new javax.swing.event.MenuListener() {
			public void menuCanceled(javax.swing.event.MenuEvent evt) {
			}

			public void menuDeselected(javax.swing.event.MenuEvent evt) {
			}

			public void menuSelected(javax.swing.event.MenuEvent evt) {
				jMenu6MenuSelected(evt);
			}
		});
		jMenu6.addFocusListener(new java.awt.event.FocusAdapter() {
			public void focusLost(java.awt.event.FocusEvent evt) {
				jMenu6FocusLost(evt);
			}
		});
		jMenu4.add(jMenu6);

		jMenu8.setIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/Icons/01.png"))); // NOI18N
		jMenu8.setText("Verwijder");
		jMenu8.addMouseListener(new java.awt.event.MouseAdapter() {
			public void mouseEntered(java.awt.event.MouseEvent evt) {
				jMenu8MouseEntered(evt);
			}
		});
		jMenu8.addChangeListener(new javax.swing.event.ChangeListener() {
			public void stateChanged(javax.swing.event.ChangeEvent evt) {
				jMenu8StateChanged(evt);
			}
		});
		jMenu8.addActionListener(new java.awt.event.ActionListener() {
			public void actionPerformed(java.awt.event.ActionEvent evt) {
				jMenu8ActionPerformed(evt);
			}
		});
		jMenu4.add(jMenu8);

		jMenu1.add(jMenu4);

		jMenu5.setIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/Icons/36.png"))); // NOI18N
		jMenu5.setText("Taak");

		jMenuItem1.setIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/Icons/02.png"))); // NOI18N
		jMenuItem1.setText("Nieuw");
		jMenuItem1.addActionListener(new java.awt.event.ActionListener() {
			public void actionPerformed(java.awt.event.ActionEvent evt) {
				jMenuItem1ActionPerformed(evt);
			}
		});
		jMenu5.add(jMenuItem1);

		jMenu10.setIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/Icons/03.png"))); // NOI18N
		jMenu10.setText("Bewerk");
		jMenu10.addMouseListener(new java.awt.event.MouseAdapter() {
			public void mouseEntered(java.awt.event.MouseEvent evt) {
				jMenu10MouseEntered(evt);
			}
		});
		jMenu10.addChangeListener(new javax.swing.event.ChangeListener() {
			public void stateChanged(javax.swing.event.ChangeEvent evt) {
				jMenu10StateChanged(evt);
			}
		});
		jMenu5.add(jMenu10);

		jMenu14.setIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/Icons/01.png"))); // NOI18N
		jMenu14.setText("Verwijder");
		jMenu14.addMouseListener(new java.awt.event.MouseAdapter() {
			public void mouseEntered(java.awt.event.MouseEvent evt) {
				jMenu14MouseEntered(evt);
			}
		});
		jMenu14.addChangeListener(new javax.swing.event.ChangeListener() {
			public void stateChanged(javax.swing.event.ChangeEvent evt) {
				jMenu14StateChanged(evt);
			}
		});
		jMenu5.add(jMenu14);

		jMenu1.add(jMenu5);

		jMenu7.setIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/Icons/37.png"))); // NOI18N
		jMenu7.setText("Gebeurtenis");

		jMenuItem14.setIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/Icons/02.png"))); // NOI18N
		jMenuItem14.setText("Nieuw");
		jMenuItem14.addActionListener(new java.awt.event.ActionListener() {
			public void actionPerformed(java.awt.event.ActionEvent evt) {
				jMenuItem14ActionPerformed(evt);
			}
		});
		jMenu7.add(jMenuItem14);

		jMenu15.setIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/Icons/03.png"))); // NOI18N
		jMenu15.setText("Bewerk");
		jMenu15.addMouseListener(new java.awt.event.MouseAdapter() {
			public void mouseEntered(java.awt.event.MouseEvent evt) {
				jMenu15MouseEntered(evt);
			}
		});
		jMenu15.addChangeListener(new javax.swing.event.ChangeListener() {
			public void stateChanged(javax.swing.event.ChangeEvent evt) {
				jMenu15StateChanged(evt);
			}
		});

		jMenu7.add(jMenu15);

		jMenu16.setIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/Icons/01.png"))); // NOI18N
		jMenu16.setText("Verwijder");
		jMenu16.addMouseListener(new java.awt.event.MouseAdapter() {
			public void mouseEntered(java.awt.event.MouseEvent evt) {
				jMenu16MouseEntered(evt);
			}
		});
		jMenu16.addChangeListener(new javax.swing.event.ChangeListener() {
			public void stateChanged(javax.swing.event.ChangeEvent evt) {
				jMenu16StateChanged(evt);
			}
		});
		jMenu7.add(jMenu16);

		jMenu1.add(jMenu7);

		jMenu9.setIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/Icons/07.png"))); // NOI18N
		jMenu9.setText("Contact");

		jMenuItem21.setIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/Icons/02.png"))); // NOI18N
		jMenuItem21.setText("Nieuw");
		jMenuItem21.addActionListener(new java.awt.event.ActionListener() {
			public void actionPerformed(java.awt.event.ActionEvent evt) {
				jMenuItem21ActionPerformed(evt);
			}
		});
		jMenu9.add(jMenuItem21);

		jMenu17.setIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/Icons/03.png"))); // NOI18N
		jMenu17.setText("Bewerk");
		jMenu17.addMouseListener(new java.awt.event.MouseAdapter() {
			public void mouseEntered(java.awt.event.MouseEvent evt) {

				jMenu17MouseEntered(evt);

			}
		});
		jMenu17.addChangeListener(new javax.swing.event.ChangeListener() {
			public void stateChanged(javax.swing.event.ChangeEvent evt) {

				jMenu17StateChanged(evt);

			}
		});
		jMenu9.add(jMenu17);

		jMenu18.setIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/Icons/01.png"))); // NOI18N
		jMenu18.setText("Verwijder");

		jMenu18.addMouseListener(new java.awt.event.MouseAdapter() {
			public void mouseEntered(java.awt.event.MouseEvent evt) {

				jMenu18MouseEntered(evt);

			}
		});
		jMenu18.addChangeListener(new javax.swing.event.ChangeListener() {
			public void stateChanged(javax.swing.event.ChangeEvent evt) {

				jMenu18StateChanged(evt);

			}
		});
		jMenu9.add(jMenu18);

		jMenu1.add(jMenu9);

		jMenuBar1.add(jMenu1);

		jMenu11.setText("Import/Export");

		jMenuItem26.setIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/Icons/05.png"))); // NOI18N
		jMenuItem26.setText("Importeer");
		jMenuItem26.addActionListener(new java.awt.event.ActionListener() {
			public void actionPerformed(java.awt.event.ActionEvent evt) {
				jMenuItem26ActionPerformed(evt);
			}
		});
		jMenu11.add(jMenuItem26);

		jMenuItem27.setIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/Icons/068.png"))); // NOI18N
		jMenuItem27.setText("Exporteer");
		jMenuItem27.addActionListener(new java.awt.event.ActionListener() {
			public void actionPerformed(java.awt.event.ActionEvent evt) {
				jMenuItem27ActionPerformed(evt);
			}
		});
		jMenu11.add(jMenuItem27);

		jMenuBar1.add(jMenu11);

		jMenu19.setText("Vormgeving");

		jMenuItem2.setIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/Icons/10.png"))); // NOI18N
		jMenuItem2.setText("Metal");
		jMenuItem2.addActionListener(new java.awt.event.ActionListener() {
			public void actionPerformed(java.awt.event.ActionEvent evt) {
				jMenuItem2ActionPerformed(evt);
			}
		});
		jMenu19.add(jMenuItem2);

		jMenuItem4.setIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/Icons/09.png"))); // NOI18N
		jMenuItem4.setText("System");
		jMenuItem4.addActionListener(new java.awt.event.ActionListener() {
			public void actionPerformed(java.awt.event.ActionEvent evt) {
				jMenuItem4ActionPerformed(evt);
			}
		});
		jMenu19.add(jMenuItem4);

		jMenuItem7.setIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/Icons/08.png"))); // NOI18N
		jMenuItem7.setText("Motif");
		jMenuItem7.addActionListener(new java.awt.event.ActionListener() {
			public void actionPerformed(java.awt.event.ActionEvent evt) {
				jMenuItem7ActionPerformed(evt);
			}
		});
		jMenu19.add(jMenuItem7);

		jMenuBar1.add(jMenu19);

		jMenu2.setText("Help");

		jMenuItem5.setIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/Icons/43.png"))); // NOI18N
		jMenuItem5.setText("About");
		jMenuItem5.addActionListener(new java.awt.event.ActionListener() {
			public void actionPerformed(java.awt.event.ActionEvent evt) {
				jMenuItem5ActionPerformed(evt);
			}
		});
		jMenu2.add(jMenuItem5);

		jMenuBar1.add(jMenu2);

		setJMenuBar(jMenuBar1);

		javax.swing.GroupLayout layout = new javax.swing.GroupLayout(
				getContentPane());
		getContentPane().setLayout(layout);
		layout.setHorizontalGroup(layout.createParallelGroup(
				javax.swing.GroupLayout.Alignment.LEADING).addGroup(
				layout.createSequentialGroup().addContainerGap().addComponent(
						AchtergrondPanel, javax.swing.GroupLayout.DEFAULT_SIZE,
						javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
						.addContainerGap()));
		layout.setVerticalGroup(layout.createParallelGroup(
				javax.swing.GroupLayout.Alignment.LEADING).addGroup(
				javax.swing.GroupLayout.Alignment.TRAILING,
				layout.createSequentialGroup().addContainerGap().addComponent(
						AchtergrondPanel, javax.swing.GroupLayout.DEFAULT_SIZE,
						javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
						.addContainerGap()));

		pack();
	}// </editor-fold>//GEN-END:initComponents

	private void initCard() {

		cl = (CardLayout) (DashboardPanel.getLayout());
		DashboardPanel.add(startPanel, "start");
		DashboardPanel.add(vakkenPanel, "vakken");
		DashboardPanel.add(smartfolderPanel, "smartfolder");
		DashboardPanel.add(projectenPanel, "projecten");
		DashboardPanel.add(iCalenderPanel, "iCalender");
		DashboardPanel.add(contactenPanel, "contacten");

	}

	private void initIcons() throws Exception {

	}

	private void initLessen() throws Exception {

		if (db != null) {

			GregorianCalendar newCal = new GregorianCalendar();
			int todayDay = newCal.get(Calendar.DAY_OF_WEEK);
			if (todayDay == 1) {
				todayDay = 8;
			}
			Vector<objects.Lesson> lessonVector = db.lesson.getAllLessons();
			Vector<objects.Event> deadlineVector = db.event.getAllDeadlines();
			String text = "";
			System.out.println(todayDay);
			for (int i = 0; i < lessonVector.size(); i++) {
				objects.Lesson lesson = lessonVector.get(i);
				String day = lesson.getDayOfWeek();

				if (compareStrings(Integer.toString(todayDay - 1), day)) {
					
					DBDateTime start2 = DBDateTime.create(lesson.getStart());
					boolean hasEnd = true;
					if (lesson.getEnd() == null) {
						hasEnd = false;
					}

					String start = "";
					String end = "";
					if (start2.getMinutes() == "00") {
						start = start2.getHours() + ":00";
					} else {
						start = start2.getHours() + ":" + start2.getMinutes();
					}
					if (hasEnd) {
						DBDateTime end2 = DBDateTime.create(lesson.getEnd());
						if (end2.getMinutes() == "00") {
							end = end2.getHours() + ":00";
						} else {
							end = end2.getHours() + ":" + end2.getMinutes();
						}
					}

					text = text
							+ "Vak:\t\t"
							+ lesson.getCourseName()
							+ "\nVan:\t\t"
							+ start
							+ "\nTot:\t\t"
							+ end
							+ "\nLokaal:\t\t"
							+ lesson.getRoom()
							+ "\nAantal weken:\t\t"
							+ lesson.getNumberOfWeeks()
							+ "\n"
							+ "--------------------------------------------------------------------------------------------\n";

				}
			}
			jTextArea9.setText(text);
			String text2 = "";
			for (int j = 0; j < deadlineVector.size(); j++) {
				DBDateTime d = DBDateTime.create(deadlineVector.elementAt(j)
						.getStart());
				if (DBDateTime.inNextWeek(d)) {
					String date = d.getDay() + "/" + d.getMonth() + "/"
							+ d.getYear();
					text2 = text2 + "Samenvatting:\t\t"
							+ deadlineVector.elementAt(j).getSummary()
							+ "\nDeadline:\t\t" + date + "\n\n";
				}
			}

			jTextArea1.setText(text2);

			jTextArea1.setEditable(false);
			jTextArea9.setEditable(false);
		}

	}

	private void ListSelectionListener1(ListSelectionEvent evt) {
	}

	private void initVakken() throws Exception {
		try {

			if (db != null) {

				Vector<objects.Course> courseVector = db.course.getAllCourses();

				Vector<String> stringVector = new Vector<String>();

				for (int i = 0; i < courseVector.size(); i++) {

					stringVector.add(courseVector.get(i).getName());

				}

				jList1.setListData(stringVector);

				jList1.addListSelectionListener(new ListSelectionListener() {

					public void valueChanged(ListSelectionEvent e) {

						if (!e.getValueIsAdjusting()) {

							objects.Course course;

							try {

								// Toon de beschrijving

								jTextArea2.setText("");

								course = db.course.getCourse((String) jList1
										.getSelectedValue());

								jTextArea2.append(course.getDescription());

								// Toon alle teachers

								Vector<objects.Teacher> teachEmailVector = db.rCTeach
										.getTeachers(course.getName());

								teacherVector = new Vector<objects.Teacher>();

								for (int i = 0; i < teachEmailVector.size(); i++) {

									teacherVector.add(db.teach
											.getTeacher(teachEmailVector
													.elementAt(i).getEmail()));

								}

								Vector<String> teachNameVector = new Vector<String>();

								for (int i = 0; i < teacherVector.size(); i++) {

									teachNameVector.add(i, teacherVector.get(i)
											.getForename()
											+ " "

											+ teacherVector.get(i).getName());

								}

								jList7.setListData(teachNameVector);

								jTextArea4.setText("");

								jTextArea4.setFont(new Font("Arial", Font.BOLD,
										14));

								Vector<objects.Task> taskVector = db.rCTask
										.getTasks(course.getName());

								for (int j = 0; j < taskVector.size(); j++) {

									jTextArea4.append(taskVector.get(j)
											.getName());

									jTextArea4.append(" : ");

									if (compareStrings(taskVector.get(j)
											.getDone(), "F")) {

										jTextArea4
												.append("Nog geen resultaat bekend\n");

									} else {

										jTextArea4.append(taskVector.get(j)
												.getGrades()
												+ "\n");

									}

								}

							} catch (Exception ex) {

								ex.getStackTrace();

							}

						}

					}

				});

			}

		}

		catch (Exception e) {

			jLabel66.setText(e.getMessage());
			eventErrorVenster.pack();
			eventErrorVenster.setLocationRelativeTo(null);
			eventErrorVenster.setVisible(true);

		}

	}

	private void initProjecten() {
		try {
			if (db != null) {
				Vector<objects.Project> projectVector = db.proj
						.getAllProjects();
				Vector<String> stringVector = new Vector<String>();
				for (int i = 0; i < projectVector.size(); i++) {
					stringVector.add(projectVector.get(i).getName());
				}
				jList5.setListData(stringVector);
			}
			jList5.addListSelectionListener(new ListSelectionListener() {
				@Override
				public void valueChanged(ListSelectionEvent e) {
					if (!e.getValueIsAdjusting()) {
						objects.Project project;
						try {

							jTextArea5.setText("");
							jTextArea3.setText("");
							jTextArea8.setText("");
							jTextArea7.setText("");
							jTextArea6.setText("");

							project = db.proj.getProject((String) jList5
									.getSelectedValue());

							// Toon de beschrijving

							jTextArea5.append(project.getDescription());

							// Toon alle teamgenoten

							Vector<objects.Student> teammateVector = db.rPS
									.getStudents(project.getName());
							Vector<String> temp = new Vector<String>();
							for (int i = 0; i < teammateVector.size(); i++) {
								temp
										.add(teammateVector.elementAt(i)
												.getEmail());
							}
							jList6.setListData(temp);

							// Toon de planning
							jTextArea3.setLineWrap(true);
							jTextArea3.setWrapStyleWord(true);
							jTextArea3.append(project.getPlanning());

							// Toon de bijkomende informatie

							jTextArea8.append(project.getMoreInformation());

							// Toon de resultaten
							if (compareStrings(project.getDone(), "T")) {
								jTextArea7.append(project.getGrades());
							} else {
								jTextArea7
										.append("Er is nog geen resultaat bekend\n");
							}

							// Toon alle deadlines
							Vector<objects.Event> v = db.rTE.getEvents(project
									.getName());
							jTextArea6
									.setMargin(new java.awt.Insets(5, 5, 5, 5));
							for (int i = 0; i < v.size(); i++) {
								DBDateTime d = DBDateTime.create(v.elementAt(i)
										.getStart());
								String deadline = d.getDay() + "/"
										+ d.getMonth() + "/" + d.getYear();
								jTextArea6.append(deadline + "\n");
							}

						} catch (Exception ex) {
							Logger.getLogger(NewJFrame.class.getName()).log(
									Level.SEVERE, null, ex);
						}
					}
				}
			});

		} catch (Exception e) {
			
			jLabel66.setText(e.getMessage());
			eventErrorVenster.pack();
			eventErrorVenster.setLocationRelativeTo(null);
			eventErrorVenster.setVisible(true);

		}
	}

	private void jMenuItem5ActionPerformed(java.awt.event.ActionEvent evt) {// GEN-FIRST:event_jMenuItem5ActionPerformed

		aboutVenster.pack();
		aboutVenster.setLocationRelativeTo(null);
		aboutVenster.setVisible(true);

	}// GEN-LAST:event_jMenuItem5ActionPerformed

	private void vakkenButtonActionPerformed(java.awt.event.ActionEvent evt) {// GEN-FIRST:event_vakkenButtonActionPerformed

		try {
			initVakken();
			startButton.setSelected(false);
			smartfoldersButton.setSelected(false);
			projectenButton.setSelected(false);
			iCalenderButton.setSelected(false);
			contactenButton.setSelected(false);
			cl.show(DashboardPanel, "vakken");
		} catch (Exception e) {
			
			jLabel66.setText(e.getMessage());
			eventErrorVenster.pack();
			eventErrorVenster.setLocationRelativeTo(null);
			eventErrorVenster.setVisible(true);
		}

	}// GEN-LAST:event_vakkenButtonActionPerformed

	private void startButtonActionPerformed(java.awt.event.ActionEvent evt) {// GEN-FIRST:event_startButtonActionPerformed

		vakkenButton.setSelected(false);
		smartfoldersButton.setSelected(false);
		projectenButton.setSelected(false);
		iCalenderButton.setSelected(false);
		contactenButton.setSelected(false);
		cl.show(DashboardPanel, "start");

	}// GEN-LAST:event_startButtonActionPerformed

	private void smartfoldersButtonActionPerformed(
			java.awt.event.ActionEvent evt) {// GEN-FIRST:event_smartfoldersButtonActionPerformed
		// TODO add your handling code here:
		startButton.setSelected(false);
		vakkenButton.setSelected(false);
		projectenButton.setSelected(false);
		iCalenderButton.setSelected(false);
		contactenButton.setSelected(false);
		cl.show(DashboardPanel, "smartfolder");
	}// GEN-LAST:event_smartfoldersButtonActionPerformed

	private void jRadioButton3ActionPerformed(java.awt.event.ActionEvent evt) {// GEN-FIRST:event_jRadioButton3ActionPerformed
		// TODO add your handling code here:
	}// GEN-LAST:event_jRadioButton3ActionPerformed

	private void projectenButtonActionPerformed(java.awt.event.ActionEvent evt) {// GEN-FIRST:event_projectenButtonActionPerformed
		// TODO add your handling code here:
		initProjecten();
		startButton.setSelected(false);
		vakkenButton.setSelected(false);
		smartfoldersButton.setSelected(false);
		iCalenderButton.setSelected(false);
		contactenButton.setSelected(false);
		vakkenButton.setSelected(false);
		cl.show(DashboardPanel, "projecten");
	}// GEN-LAST:event_projectenButtonActionPerformed

	private void updateTeachers(String subjectName) {
		/*
		 * DefaultListModel listModel = new DefaultListModel();
		 * Vector<objects.Subject> subjectsVector = db.subj.getAllSubjects();
		 * if(!(subjectsVector.isEmpty())){ for(int
		 * i=0;i<subjectsVector.size()-1;i++){ listModel.add(i,
		 * subjectsVector.get(i).getName()); } } else{
		 * System.out.println("Empty"); }
		 */
	}

	private static boolean compareStrings(String s1, String s2) {
		// vergelijkt 2 Strings
		if (s1.length() != s2.length()) {
			return false;
		} else {
			for (int i = 0; i < s1.length(); i++) {
				if (s1.charAt(i) != s2.charAt(i)) {
					return false;
				}
			}
		}
		return true;
	}

	private boolean inContactList(String email, Vector<objects.Contact> v) {
		boolean check = false;
		for (int i = 0; i < v.size(); i++) {
			if (compareStrings(v.elementAt(i).getEmail(), email)) {
				check = true;
			}
		}
		return check;
	}

	private void refreshContactMenu() {
		jMenu17.removeAll();
		jMenu18.removeAll();
		Vector<objects.Contact> contactVec = makeContactList();
		for (int i = 0; i < contactVec.size(); i++) {
			if (contactVec.get(i) != null) {
				JMenuItem item = new JMenuItem();
				JMenuItem item2 = new JMenuItem();
				item.addActionListener(new JMenu17ActionListener());
				item2.addActionListener(new JMenu18ActionListener());
				item.setText((contactVec.get(i)).getEmail());
				item2.setText((contactVec.get(i)).getEmail());
				jMenu17.add(item);
				jMenu18.add(item2);
			}
		}

	}

	public ListModel makeContactListModel() {
		DefaultListModel lst = new DefaultListModel();
		Vector<objects.Contact> contactVector = new Vector<objects.Contact>();
		try {
			Vector<objects.Teacher> teachVec = db.teach.getAllTeachers();
			Vector<objects.Student> studVec = db.stud.getAllStudents();
			Vector<objects.Contact> temp = db.contact.getAllContacts();
			String name = "";
			int counter = 0;
			for (int i = 0; i < teachVec.size(); i++) {
				contactVector.add(teachVec.elementAt(i));
				name = teachVec.elementAt(i).getForename() + " "
						+ teachVec.elementAt(i).getName();
				lst.add(counter, name);
				counter++;
			}
			for (int i = 0; i < studVec.size(); i++) {
				contactVector.add(studVec.elementAt(i));
				name = studVec.elementAt(i).getForename() + " "
						+ studVec.elementAt(i).getName();
				lst.add(counter, name);
				counter++;
			}

			for (int i = 0; i < temp.size(); i++) {
				if (!inContactList(temp.elementAt(i).getEmail(), contactVector)) {
					contactVector.add(temp.elementAt(i));
					name = temp.elementAt(i).getForename() + " "
							+ temp.elementAt(i).getName();
					lst.add(counter, name);
					counter++;
				}
			}
		} catch (Exception e) {
			
			jLabel66.setText(e.getMessage());
			eventErrorVenster.pack();
			eventErrorVenster.setLocationRelativeTo(null);
			eventErrorVenster.setVisible(true);
			
		}
		return lst;
	}

	public int setSelectedValue() {
		ListModel lst = jList8.getModel();
		int select = 0;
		if (lst.getSize() == 0) {
			select = -1;
		} else {
			int index = 0;
			try {
				Vector<objects.Contact> v = makeContactList();
				jTextPane1.setEditable(false);
				jTextPane1.setFont(new Font("Arial", Font.BOLD, 16));
				if (v.get(index) instanceof objects.Student) {
					objects.Student temp = (objects.Student) v.get(index);
					jTextPane1.setText("Voornaam:\t\t" + temp.getForename()
							+ "\n\nNaam:\t\t\t" + temp.getName()
							+ "\n\nE-mail:\t\t\t" + temp.getEmail()
							+ "\n\nExtra informatie:\t\t"
							+ temp.getMoreInformation()
							+ "\n\nAlternatieve E-mail:\t\t"
							+ temp.getAlternativeEmail());
				} else if (v.get(index) instanceof objects.Teacher) {
					objects.Teacher temp = (objects.Teacher) v.get(index);
					jTextPane1.setText("Voornaam:\t\t" + temp.getForename()
							+ "\n\nNaam:\t\t\t" + temp.getName()
							+ "\n\nE-mail:\t\t\t" + temp.getEmail()
							+ "\n\nExtra informatie:\t\t"
							+ temp.getMoreInformation() + "\n\nKantoor:\t\t\t"
							+ temp.getOffice() + "\n\nTelefoonnummer:\t\t"
							+ temp.getPhoneNumber() + "\n\nTitel:\t\t\t"
							+ temp.getTitle());
				} else if (v.get(index) instanceof objects.Contact) {
					jTextPane1.setText("Voornaam:\t\t"
							+ v.get(index).getForename() + "\n\nNaam:\t\t\t"
							+ v.get(index).getName() + "\n\nE-mail:\t\t\t"
							+ v.get(index).getEmail()
							+ "\n\nExtra informatie:\t\t"
							+ v.get(index).getMoreInformation());
				}

			} catch (Exception exc) {
				
				jLabel66.setText(exc.getMessage());
				eventErrorVenster.pack();
				eventErrorVenster.setLocationRelativeTo(null);
				eventErrorVenster.setVisible(true);
				
			}
		}
		return select;
	}

	public Vector<objects.Contact> makeContactList() {
		Vector<objects.Contact> contactVector = new Vector<objects.Contact>();
		try {
			Vector<objects.Teacher> teachVec = db.teach.getAllTeachers();
			Vector<objects.Student> studVec = db.stud.getAllStudents();
			Vector<objects.Contact> temp = db.contact.getAllContacts();

			for (int i = 0; i < teachVec.size(); i++) {
				contactVector.add(teachVec.elementAt(i));
			}
			for (int i = 0; i < studVec.size(); i++) {
				contactVector.add(studVec.elementAt(i));
			}

			for (int i = 0; i < temp.size(); i++) {
				if (!inContactList(temp.elementAt(i).getEmail(), contactVector)) {
					contactVector.add(temp.elementAt(i));
				}
			}

		} catch (Exception e) {
			
			jLabel66.setText(e.getMessage());
			eventErrorVenster.pack();
			eventErrorVenster.setLocationRelativeTo(null);
			eventErrorVenster.setVisible(true);
			
		}
		return contactVector;
	}

	private void jTextField6ActionPerformed(java.awt.event.ActionEvent evt) {// GEN-FIRST:event_jTextField6ActionPerformed
	}// GEN-LAST:event_jTextField6ActionPerformed

	private void jTextField22ActionPerformed(java.awt.event.ActionEvent evt) {// GEN-FIRST:event_jTextField22ActionPerformed
	}// GEN-LAST:event_jTextField22ActionPerformed

	private void jTextField23ActionPerformed(java.awt.event.ActionEvent evt) {// GEN-FIRST:event_jTextField23ActionPerformed
	}// GEN-LAST:event_jTextField23ActionPerformed

	private void jComboBox4ActionPerformed(java.awt.event.ActionEvent evt) {// GEN-FIRST:event_jComboBox4ActionPerformed
	}// GEN-LAST:event_jComboBox4ActionPerformed

	private void jButton10ActionPerformed(java.awt.event.ActionEvent evt) {// GEN-FIRST:event_jButton10ActionPerformed

		try {
			String type = (String) jComboBox3.getSelectedItem();
			String name = jTextField6.getText();
			String fName = jTextField18.getText();
			String newEmail = jTextField19.getText();
			String moreInfo = jTextField20.getText();
			String phoneNum = jTextField23.getText();
			boolean update = true;

			if (!compareStrings(jButton10.getText(), "Sluiten")) {
				if (compareStrings(contactVenster.getTitle(),
						"Contact toevoegen")) {
					update = false;
				}

				if (!compareStrings(type, gOldType) && update) {
					if (compareStrings(gOldType, "Professor/Assistent")) {
						Vector<objects.Course> v = db.rCTeach
								.getCourses(gEmail);
						for (int i = 0; i < v.size(); i++) {
							db.rCTeach.delete(v.elementAt(i).getName(), gEmail);
						}
						db.teach.delete(gEmail);
					} else if (compareStrings(gOldType, "Student")) {
						Vector<objects.Project> v = db.rPS.getProjects(gEmail);
						for (int i = 0; i < v.size(); i++) {
							db.rPS.delete(v.elementAt(i).getName(), gEmail);
						}
						db.stud.delete(gEmail);
					} else {
						db.contact.delete(gEmail);
					}
					update = false;
				}
				if (compareStrings(type, "Professor/Assistent")) {
					String office = jTextField22.getText();
					String title = (String) jComboBox4.getSelectedItem();
					if (compareStrings(title, "Geen")) {
						title = "";
					}
					if (update) {

						db.teach.updateForename(gEmail, fName);
						db.teach.updateMoreInformation(gEmail, moreInfo);
						db.teach.updateName(gEmail, name);
						db.teach.updatePhoneNumber(gEmail, phoneNum);
						db.teach.updateOffice(gEmail, office);
						db.teach.updateTitle(gEmail, title);
						db.teach.updateEmail(gEmail, newEmail);

						jTextPane1.setText("Voornaam:\t\t" + fName
								+ "\n\nNaam:\t\t\t" + name
								+ "\n\nE-mail:\t\t\t" + newEmail
								+ "\n\nExtra informatie:\t\t" + moreInfo
								+ "\n\nKantoor:\t\t\t" + office
								+ "\n\nTelefoonnummer:\t\t" + phoneNum
								+ "\n\nTitel:\t\t\t" + title);
					} else {
						db.teach.add(newEmail, name, fName, phoneNum, moreInfo,
								office, title);

					}
					ListModel lst = jList9.getModel();
					for (int i = 0; i < lst.getSize(); i++) {
						String s = (String) lst.getElementAt(i);
						db.rCTeach.add(s, newEmail);
					}

				} else if (compareStrings(type, "Student")) {
					String altMail = jTextField21.getText();
					if (update) {
						db.stud.updateForename(gEmail, fName);
						db.stud.updateMoreInformation(gEmail, moreInfo);
						db.stud.updateName(gEmail, name);
						db.stud.updatePhoneNumber(gEmail, phoneNum);
						db.stud.updateEmail(gEmail, newEmail);
						db.stud.updateAlternativeEmail(newEmail, altMail);

						jTextPane1.setText("Voornaam:\t\t" + fName
								+ "\n\nNaam:\t\t\t" + name
								+ "\n\nE-mail:\t\t\t" + newEmail
								+ "\n\nExtra informatie:\t\t" + moreInfo
								+ "\n\nTelefoonnummer:\t\t" + phoneNum
								+ "\n\nAlternatieve E-mail:\t" + altMail);

					} else {
						db.stud.add(newEmail, name, fName, phoneNum, moreInfo,
								altMail);
					}

					ListModel lst = jList9.getModel();
					for (int i = 0; i < lst.getSize(); i++) {
						String s = (String) lst.getElementAt(i);
						db.rPS.add(s, newEmail);
					}
				} else if (compareStrings(type, "Gewone Contactpersoon")) {
					if (update) {
						db.contact.updateForename(gEmail, fName);
						db.contact.updateMoreInformation(gEmail, moreInfo);
						db.contact.updateName(gEmail, name);
						db.contact.updatePhoneNumber(gEmail, phoneNum);
						db.contact.updateEmail(gEmail, newEmail);
						jTextPane1.setText("Voornaam:\t\t" + fName
								+ "\n\nNaam:\t\t\t" + name
								+ "\n\nE-mail:\t\t\t" + newEmail
								+ "\n\nTelefoonNummer:\t\t" + phoneNum
								+ "\n\nExtra informatie:\t\t" + moreInfo);
					} else {
						db.contact.add(newEmail, name, fName, phoneNum,
								moreInfo);
					}
				}
			}
		} catch (Exception e) {
			
			jLabel66.setText(e.getMessage());
			eventErrorVenster.pack();
			eventErrorVenster.setLocationRelativeTo(null);
			eventErrorVenster.setVisible(true);
			
		}
		jList8.setModel(makeContactListModel());
		jButton9.setVisible(true);
		jButton10.setText("Opslaan");
		jComboBox3.setEditable(true);
		jTextField6.setEditable(true);
		jTextField18.setEditable(true);
		jTextField18.setEditable(true);
		jTextField19.setEditable(true);
		jTextField20.setEditable(true);
		jTextField23.setEditable(true);
		jTextField22.setEditable(true);
		jTextField21.setEditable(true);
		jButton19.setVisible(true);
		jButton20.setVisible(true);
		jList10.setVisible(true);
		jComboBox4.setEditable(true);
		jComboBox4.setEnabled(true);
		jComboBox3.setEnabled(true);
		refreshContactMenu();

		contactVenster.setVisible(false);
		this.setEnabled(true);
		this.toFront();

	}// GEN-LAST:event_jButton10ActionPerformed

	private void jFileChooser1ActionPerformed(java.awt.event.ActionEvent evt) {// GEN-FIRST:event_jFileChooser1ActionPerformed
	}// GEN-LAST:event_jFileChooser1ActionPerformed

	private void jMenuItem3ActionPerformed(java.awt.event.ActionEvent evt) {// GEN-FIRST:event_jMenuItem3ActionPerformed

		try {

			clearBestandsVenster();

			final DefaultListModel taskVector2 = new DefaultListModel();

			jButton27.addActionListener(new ActionListener() {

				@Override
				public void actionPerformed(ActionEvent e) {

					taskVector2.addElement(((String) jComboBox27.getSelectedItem()));
					jList11.setModel(taskVector2);

				}
			});

			final Vector<String> courseVector2 = new Vector<String>();

			jButton28.addActionListener(new ActionListener() {

				@Override
				public void actionPerformed(ActionEvent e) {

					courseVector2.add((String) jComboBox7.getSelectedItem());
					jList12.setListData(courseVector2);

				}
			});

			jButton29.addActionListener(new ActionListener() {

				@Override
				public void actionPerformed(ActionEvent e) {

					taskVector2.removeElement(((String) jList11.getSelectedValue()));
					jList11.setModel(taskVector2);

				}
			});

			jButton30.addActionListener(new ActionListener() {

				@Override
				public void actionPerformed(ActionEvent e) {

					courseVector2.remove((String) jList12.getSelectedValue());
					jList12.setListData(courseVector2);

				}
			});

			jButton7.addActionListener(new ActionListener() {

				@Override
				public void actionPerformed(ActionEvent evt) {

					try {

						for (int i = 0; i < taskVector2.size(); i++) {

							db.rTF.add((String) taskVector2.get(i), jFileChooser1
									.getSelectedFile().getAbsolutePath());

						}
						for (int i = 0; i < courseVector2.size(); i++) {

							db.rCF.add(courseVector2.get(i), jFileChooser1
									.getSelectedFile().getAbsolutePath());

						}
					} catch (Exception e) {

						jLabel66.setText(e.getMessage());
						eventErrorVenster.pack();
						eventErrorVenster.setLocationRelativeTo(null);
						eventErrorVenster.setVisible(true);

					}

				}
			});

			bestandsVenster.pack();
			bestandsVenster.setTitle("Nieuw bestand");
			bestandsVenster.setLocationRelativeTo(null);
			bestandsVenster.setVisible(true);
			this.setEnabled(false);
			bestandsVenster.toFront();

		} catch (Exception e) {

			jLabel66.setText(e.getMessage());
			eventErrorVenster.pack();
			eventErrorVenster.setLocationRelativeTo(null);
			eventErrorVenster.setVisible(true);

		}

	}// GEN-LAST:event_jMenuItem3ActionPerformed

	private void clearEventVenster() {

		try {

			jComboBox37.removeAll();

			jTextPane5.setText("");

			jComboBox12.addItem("");
			jComboBox17.addItem("");
			jComboBox22.addItem("");
			for (int i = 0; i < 20; i++) {

				jComboBox12.addItem(Calendar.getInstance().get(Calendar.YEAR)
						+ i);
				jComboBox17.addItem(Calendar.getInstance().get(Calendar.YEAR)
						+ i);
				jComboBox22.addItem(Calendar.getInstance().get(Calendar.YEAR)
						+ i);

			}
			jComboBox13.addItem("");
			jComboBox18.addItem("");
			jComboBox23.addItem("");
			for (int i = 1; i < 13; i++) {

				if (i < 10) {

					jComboBox13.addItem("0" + i);
					jComboBox18.addItem("0" + i);
					jComboBox23.addItem("0" + i);

				} else {

					jComboBox13.addItem(i);
					jComboBox18.addItem(i);
					jComboBox23.addItem(i);

				}

			}
			jComboBox14.addItem("");
			jComboBox19.addItem("");
			jComboBox24.addItem("");
			for (int i = 1; i < 32; i++) {

				if (i < 10) {

					jComboBox14.addItem("0" + i);
					jComboBox19.addItem("0" + i);
					jComboBox24.addItem("0" + i);

				} else {

					jComboBox14.addItem(i);
					jComboBox19.addItem(i);
					jComboBox24.addItem(i);

				}

			}
			jComboBox15.addItem("");
			jComboBox20.addItem("");
			jComboBox25.addItem("");
			for (int i = 00; i < 24; i++) {

				if (i < 10) {

					jComboBox15.addItem("0" + i);
					jComboBox20.addItem("0" + i);
					jComboBox25.addItem("0" + i);

				} else {

					jComboBox15.addItem(i);
					jComboBox20.addItem(i);
					jComboBox25.addItem(i);

				}

			}
			jComboBox16.addItem("");
			jComboBox21.addItem("");
			jComboBox26.addItem("");
			for (int i = 00; i < 60; i++) {

				if (i < 10) {

					jComboBox16.addItem("0" + i);
					jComboBox21.addItem("0" + i);
					jComboBox26.addItem("0" + i);

				} else {

					jComboBox16.addItem(i);
					jComboBox21.addItem(i);
					jComboBox26.addItem(i);

				}

			}
			
			Vector<objects.Course> courseVector = db.course.getAllCourses();
			for(int i = 0;i<courseVector.size();i++){
				
				jComboBox37.addItem(courseVector.get(i).getName());
				
			}
			
			Vector<objects.Task> taskVector = db.task.getAllTasks();
			for(int i = 0;i<taskVector.size();i++){
				
				jComboBox11.addItem(taskVector.get(i).getName());

				
			}
			

			jTextPane6.setText("");
			jRadioButton5.setSelected(true);

			disableLesson();
			disableDeadline();

		} catch (Exception e) {

		}
	}

	private void clearBestandsVenster() {

		try {

			jFileChooser1.setCurrentDirectory(null);
			jComboBox7.removeAllItems();
			jComboBox7.setEnabled(true);
			jComboBox27.removeAllItems();
			jComboBox27.setEnabled(true);
			jList11.removeAll();
			jList12.removeAll();
			jTextPane2.setText("");

			Vector<Task> taskVector = db.task.getAllTasks();
			Vector<Course> courseVector = db.course.getAllCourses();

			jComboBox27.addItem("");

			for (int i = 0; i < courseVector.size(); i++) {

				jComboBox27.addItem(courseVector.get(i).getName());

			}

			jComboBox7.addItem("");
			for (int i = 0; i < taskVector.size(); i++) {

				jComboBox7.addItem(taskVector.get(i).getName());

			}

		} catch (Exception e) {

			jLabel66.setText(e.getMessage());
			eventErrorVenster.pack();
			eventErrorVenster.setLocationRelativeTo(null);
			eventErrorVenster.setVisible(true);

		}

	}

	private void clearTaskVenster() {

		try {

			jLabel61.setEnabled(false);
			jTextPane10.setEnabled(false);

			jTextField1.setText("");
			jTextField1.setEnabled(true);
			jTextPane7.setText("");
			jTextPane7.setEnabled(true);
			jLabel46.setEnabled(true);
			jCheckBox1.setEnabled(true);
			jCheckBox1.setSelected(false);
			jLabel8.setEnabled(true);
			jComboBox10.setSelectedItem("0");
			jLabel45.setEnabled(true);
			jLabel60.setEnabled(true);

			jRadioButton8.setEnabled(true);
			jRadioButton8.setSelected(true);
			jRadioButton9.setEnabled(true);
			jRadioButton10.setEnabled(true);

			jLabel48.setEnabled(true);
			jTextField36.setEnabled(true);
			jLabel49.setEnabled(true);
			jTextField37.setEnabled(true);
			jLabel51.setEnabled(true);
			jCheckBox2.setEnabled(true);
			jLabel50.setEnabled(true);
			jComboBox6.setEnabled(true);
			jLabel61.setEnabled(true);
			jTextPane10.setText("");
			jTextPane10.setEnabled(true);
			jTextPane9.setText("");

		} catch (Exception e) {

			jLabel66.setText(e.getMessage());
			eventErrorVenster.pack();
			eventErrorVenster.setLocationRelativeTo(null);
			eventErrorVenster.setVisible(true);

		}

	}

	private void iCalenderButtonActionPerformed(java.awt.event.ActionEvent evt) {// GEN-FIRST:event_iCalenderButtonActionPerformed
		try {
			startButton.setSelected(false);
			vakkenButton.setSelected(false);
			projectenButton.setSelected(false);
			contactenButton.setSelected(false);
			cl.show(DashboardPanel, "iCalender");
		} catch (Exception e) {
			
			jLabel66.setText(e.getMessage());
			eventErrorVenster.pack();
			eventErrorVenster.setLocationRelativeTo(null);
			eventErrorVenster.setVisible(true);
		}
	}// GEN-LAST:event_iCalenderButtonActionPerformed

	private void contactenButtonActionPerformed(java.awt.event.ActionEvent evt) {// GEN-FIRST:event_contactenButtonActionPerformed
		startButton.setSelected(false);
		vakkenButton.setSelected(false);
		projectenButton.setSelected(false);
		iCalenderButton.setSelected(false);
		cl.show(DashboardPanel, "contacten");

	}// GEN-LAST:event_contactenButtonActionPerformed

	private void jFileChooser2ActionPerformed(java.awt.event.ActionEvent evt) {// GEN-FIRST:event_jFileChooser2ActionPerformed
		try {
			if (evt.getActionCommand().equals("ApproveSelection")) {
				File file = jFileChooser2.getSelectedFile();
				try {
					Import.importZip(file.getAbsolutePath());
				} catch (Exception e) {
					e.printStackTrace();
					jLabel66.setText(e.getMessage());
					eventErrorVenster.pack();
					eventErrorVenster.setLocationRelativeTo(null);
					eventErrorVenster.setVisible(true);
					
				}
				importVenster.setVisible(false);
			} else if (evt.getActionCommand().equals("CancelSelection")) {
				importVenster.setVisible(false);
			}
		} catch (Exception e) {
			e.printStackTrace();
			jLabel66.setText(e.getMessage());
			eventErrorVenster.pack();
			eventErrorVenster.setLocationRelativeTo(null);
			eventErrorVenster.setVisible(true);
			
		}
	}// GEN-LAST:event_jFileChooser2ActionPerformed

	class zipFilter extends javax.swing.filechooser.FileFilter {

		public boolean accept(File f) {

			return f.isDirectory()
					|| f.getName().toLowerCase().endsWith(".zip")
					|| f.getName().toLowerCase().endsWith(".rar");

		}

		@Override
		public String getDescription() {

			return "*.Zip";

		}
	}

	private void jMenuItem26ActionPerformed(java.awt.event.ActionEvent evt) {// GEN-FIRST:event_jMenuItem26ActionPerformed

		zipFilter filter = new zipFilter();
		jFileChooser2.setFileFilter(new zipFilter());

		jFileChooser2.setAcceptAllFileFilterUsed(false);

		importVenster.pack();
		importVenster.setLocationRelativeTo(null);
		importVenster.setVisible(true);

	}// GEN-LAST:event_jMenuItem26ActionPerformed

	private void jMenuItem3StateChanged(javax.swing.event.ChangeEvent evt) {// GEN-FIRST:event_jMenuItem3StateChanged
	}// GEN-LAST:event_jMenuItem3StateChanged

	private void jMenu12ActionPerformed(java.awt.event.ActionEvent evt) {// GEN-FIRST:event_jMenu12ActionPerformed
	}// GEN-LAST:event_jMenu12ActionPerformed

	private void button3addContactAction(java.awt.event.ActionEvent evt) {// GEN-FIRST:event_button3addContactAction
		JViewport temp = jScrollPane15.getViewport();
		JList temp2 = (JList) temp.getView();
		int index = temp2.getSelectedIndex();
		Vector<objects.Contact> v = makeContactList();
		if (index != -1) {
			try {
				String email = v.get(index).getEmail();
				if (v.get(index) instanceof objects.Teacher) {
					db.teach.delete(email);
				} else if (v.get(index) instanceof objects.Student) {
					db.stud.delete(email);
				} else {
					db.contact.delete(email);
				}
			} catch (Exception e) {
				
				jLabel66.setText(e.getMessage());
				eventErrorVenster.pack();
				eventErrorVenster.setLocationRelativeTo(null);
				eventErrorVenster.setVisible(true);
				
			}
			jList8.setModel(makeContactListModel());
		}
	}// GEN-LAST:event_button3addContactAction

	private void jList8ValueChanged(javax.swing.event.ListSelectionEvent evt) {// GEN-FIRST:event_jList8ValueChanged

		if (evt.getValueIsAdjusting())

			return;

		JList theList = (JList) evt.getSource();

		if (theList.isSelectionEmpty()) {

		} else {

			int index = theList.getSelectedIndex();

			try {

				Vector<objects.Contact> v = makeContactList();

				jTextPane1.setEditable(false);

				jTextPane1.setFont(new Font("Arial", Font.BOLD, 16));

				String extra = "";

				String extraLbl = "";

				jTextPane1.setEditable(false);

				if (v.get(index) instanceof objects.Student) {

					objects.Student temp = (objects.Student) v.get(index);

					Vector<objects.Project> v2 = db.rPS.getProjects(temp
							.getEmail());

					for (int i = 0; i < v2.size(); i++) {

						String done = "nee";

						if (compareStrings(v2.elementAt(i).getDone(), "T")) {

							done = "ja";

						}

						extra = extra + "Naam:\t\t" + v2.elementAt(i).getName()
								+

								"\nAfgewerkt:\t\t" + done + "\nPunten:\t\t"
								+ v2.elementAt(i).getGrades() +

								"\nExtra informatie:\t"
								+ v2.elementAt(i).getMoreInformation() +

								"\nPlanning:\t\t"
								+ v2.elementAt(i).getPlanning() +

								"\nBeschrijving:\n"
								+ v2.elementAt(i).getDescription() + "\n\n";

					}

					extraLbl = "Projecten";

					jTextPane1.setText("Voornaam:\t\t" + temp.getForename()
							+ "\n\nNaam:\t\t\t"

							+ temp.getName() + "\n\nE-mail:\t\t\t"
							+ temp.getEmail()

							+ "\n\nExtra informatie:\t\t"
							+ temp.getMoreInformation()

							+ "\n\nTelefoonnummer:\t\t" + temp.getPhoneNumber()

							+ "\n\nAlternatieve E-mail:\t"
							+ temp.getAlternativeEmail());

				} else if (v.get(index) instanceof objects.Teacher) {

					objects.Teacher temp = (objects.Teacher) v.get(index);

					Vector<objects.Course> v2 = db.rCTeach.getCourses(temp
							.getEmail());

					for (int i = 0; i < v2.size(); i++) {

						extra = extra + "Naam:\t\t" + v2.elementAt(i).getName()
								+

								"\nSemester:\t\t"
								+ v2.elementAt(i).getSemester() +

								"\nAcademiejaar:\t"
								+ v2.elementAt(i).getBeginYear() +

								"\nExtra informatie:\t"
								+ v2.elementAt(i).getMoreInformation() +

								"\nBeschrijving:\n"
								+ v2.elementAt(i).getDescription() + "\n\n";

					}

					extraLbl = "Cursussen";

					jTextPane1.setText("Voornaam:\t\t" + temp.getForename()
							+ "\n\nNaam:\t\t\t"

							+ temp.getName() + "\n\nE-mail:\t\t\t"
							+ temp.getEmail()

							+ "\n\nExtra informatie:\t\t"
							+ temp.getMoreInformation()

							+ "\n\nKantoor:\t\t\t" + temp.getOffice()
							+ "\n\nTelefoonnummer:\t\t"

							+ temp.getPhoneNumber() + "\n\nTitel:\t\t\t"
							+ temp.getTitle());

				} else if (v.get(index) instanceof objects.Contact) {

					extra = "Geen extra informatie";

					extraLbl = "Gewone contact";

					jTextPane1.setText("Voornaam:\t\t"
							+ v.get(index).getForename() + "\n\nNaam:\t\t\t"

							+ v.get(index).getName() + "\n\nE-mail:\t\t\t"
							+ v.get(index).getEmail()

							+ "\n\nTelefoonNummer:\t\t"
							+ v.get(index).getPhoneNumber()

							+ "\n\nExtra informatie:\t\t"
							+ v.get(index).getMoreInformation());

				}

				jTextPane8.setMargin(new java.awt.Insets(5, 5, 5, 5));

				jTextPane8.setText(extra);

				jLabel52.setText(extraLbl);

			} catch (Exception exc) {

				jLabel66.setText(exc.getMessage());
				eventErrorVenster.pack();
				eventErrorVenster.setLocationRelativeTo(null);
				eventErrorVenster.setVisible(true);

			}

		}

	}// GEN-LAST:event_jList8ValueChanged

	private void jButton9ActionPerformed(java.awt.event.ActionEvent evt) {// GEN-FIRST:event_jButton9ActionPerformed

		contactVenster.setVisible(false);
		this.setEnabled(true);
		this.toFront();

	}// GEN-LAST:event_jButton9ActionPerformed

	private void contactVensterWindowActivated(java.awt.event.WindowEvent evt) {// GEN-FIRST:event_contactVensterWindowActivated
		String type = (String) jComboBox3.getSelectedItem();
		if (compareStrings(type, "Professor/Assistent")) {
			jLabel26.setVisible(false);
			jTextField21.setVisible(false);
			jLabel27.setVisible(true);
			jLabel29.setVisible(true);
			jTextField22.setVisible(true);
			jComboBox4.setVisible(true);
			jList9.setVisible(true);
			jList10.setVisible(true);
			jLabel56.setVisible(true);
			jLabel57.setVisible(true);
			jLabel56.setText("Geeft cursussen:");
			jLabel57.setText("Alle cursussen:");
			try {
				Vector<objects.Course> v2 = db.course.getAllCourses();
				Vector<String> v3 = new Vector<String>();
				for (int i = 0; i < v2.size(); i++) {
					v3.add(v2.get(i).getName());
				}
				jList10.setListData(v3);
			} catch (Exception e) {
				
				jLabel66.setText(e.getMessage());
				eventErrorVenster.pack();
				eventErrorVenster.setLocationRelativeTo(null);
				eventErrorVenster.setVisible(true);
				
			}
		} else if (compareStrings(type, "Student")) {
			jLabel27.setVisible(false);
			jLabel29.setVisible(false);
			jTextField22.setVisible(false);
			jComboBox4.setVisible(false);
			jLabel26.setVisible(true);
			jTextField21.setVisible(true);
			jList9.setVisible(true);
			jList10.setVisible(true);
			jLabel56.setVisible(true);
			jLabel57.setVisible(true);
			jLabel56.setText("Ingeschreven projecten:");
			jLabel57.setText("Alle projecten:");
			try {
				Vector<objects.Project> v2 = db.proj.getAllProjects();
				Vector<String> v3 = new Vector<String>();
				for (int i = 0; i < v2.size(); i++) {
					v3.add(v2.get(i).getName());
				}
				jList10.setListData(v3);
			} catch (Exception e) {
				
				jLabel66.setText(e.getMessage());
				eventErrorVenster.pack();
				eventErrorVenster.setLocationRelativeTo(null);
				eventErrorVenster.setVisible(true);
				
			}
		} else {
			jLabel26.setVisible(false);
			jTextField21.setVisible(false);
			jLabel27.setVisible(false);
			jLabel29.setVisible(false);
			jTextField22.setVisible(false);
			jComboBox4.setVisible(false);
			jList9.setVisible(false);
			jList10.setVisible(false);
			jLabel56.setVisible(false);
			jLabel57.setVisible(false);
		}
	}// GEN-LAST:event_contactVensterWindowActivated

	private void jComboBox3ActionPerformed(java.awt.event.ActionEvent evt) {// GEN-FIRST:event_jComboBox3ActionPerformed
		String type = (String) jComboBox3.getSelectedItem();
		if (compareStrings(type, "Professor/Assistent")) {
			jLabel26.setVisible(false);
			jTextField21.setVisible(false);
			jLabel27.setVisible(true);
			jLabel29.setVisible(true);
			jTextField22.setVisible(true);
			jComboBox4.setVisible(true);
			jList9.setVisible(true);
			jList10.setVisible(true);
			jLabel56.setVisible(true);
			jLabel57.setVisible(true);
			jLabel56.setText("Geeft cursussen:");
			jLabel57.setText("Alle cursussen:");
			try {
				Vector<objects.Course> v2 = db.course.getAllCourses();
				Vector<String> v3 = new Vector<String>();
				for (int i = 0; i < v2.size(); i++) {
					v3.add(v2.get(i).getName());
				}
				jList10.setListData(v3);
			} catch (Exception e) {
				
				jLabel66.setText(e.getMessage());
				eventErrorVenster.pack();
				eventErrorVenster.setLocationRelativeTo(null);
				eventErrorVenster.setVisible(true);
				
			}
		} else if (compareStrings(type, "Student")) {
			jLabel27.setVisible(false);
			jLabel29.setVisible(false);
			jTextField22.setVisible(false);
			jComboBox4.setVisible(false);
			jLabel26.setVisible(true);
			jTextField21.setVisible(true);
			jList9.setVisible(true);
			jList10.setVisible(true);
			jLabel56.setVisible(true);
			jLabel57.setVisible(true);
			jLabel56.setText("Ingeschreven projecten:");
			jLabel57.setText("Alle projecten:");
			try {
				Vector<objects.Project> v2 = db.proj.getAllProjects();
				Vector<String> v3 = new Vector<String>();
				for (int i = 0; i < v2.size(); i++) {
					v3.add(v2.get(i).getName());
				}
				jList10.setListData(v3);
			} catch (Exception e) {
				
				jLabel66.setText(e.getMessage());
				eventErrorVenster.pack();
				eventErrorVenster.setLocationRelativeTo(null);
				eventErrorVenster.setVisible(true);
			}
		} else {
			jLabel26.setVisible(false);
			jTextField21.setVisible(false);
			jLabel27.setVisible(false);
			jLabel29.setVisible(false);
			jTextField22.setVisible(false);
			jComboBox4.setVisible(false);
			jList9.setVisible(false);
			jList10.setVisible(false);
			jLabel56.setVisible(false);
			jLabel57.setVisible(false);
		}

	}// GEN-LAST:event_jComboBox3ActionPerformed

	private void jMenu12MouseMoved(java.awt.event.MouseEvent evt) {// GEN-FIRST:event_jMenu12MouseMoved
	}// GEN-LAST:event_jMenu12MouseMoved

	class JMenu8ActionListener implements ActionListener {
		@Override
		public void actionPerformed(ActionEvent e) {
			try {

				final JMenuItem item = (JMenuItem) e.getSource();

				verwijderVenster.pack();
				verwijderVenster.setLocationRelativeTo(null);
				verwijderVenster.setVisible(true);

				jButton12.addActionListener(new ActionListener() {

					@Override
					public void actionPerformed(ActionEvent evt) {

						try {

							db.course.delete(item.getText());

						} catch (Exception e) {

							jLabel66.setText(e.getMessage());
							eventErrorVenster.pack();
							eventErrorVenster.setLocationRelativeTo(null);
							eventErrorVenster.setVisible(true);

						}

					}
				});

				jMenu6.remove(item);
				jMenu8.remove(item);
			} catch (Exception v) {
				jLabel66.setText(v.getMessage());
				eventErrorVenster.pack();
				eventErrorVenster.setLocationRelativeTo(null);
				eventErrorVenster.setVisible(true);
			}

		}
	}

	private void jMenu17MouseEntered(java.awt.event.MouseEvent evt) {

		try {

			Vector<objects.Student> studentVector = db.stud.getAllStudents();
			Vector<objects.Teacher> teacherVector = db.teach.getAllTeachers();
			Vector<objects.Contact> contactVector = db.contact.getAllContacts();

			for (int i = 0; i < studentVector.size(); i++) {

				JMenuItem item = new JMenuItem();
				item.setText(studentVector.get(i).getEmail());
				item.addActionListener(new JMenu17ActionListener());
				jMenu17.add(item);

			}

			if (!studentVector.isEmpty()) {

				jMenu17.addSeparator();

			}

			for (int i = 0; i < teacherVector.size(); i++) {

				JMenuItem item = new JMenuItem();
				item.setText(teacherVector.get(i).getEmail());
				item.addActionListener(new JMenu17ActionListener());
				jMenu17.add(item);

			}

			if (!teacherVector.isEmpty()) {

				jMenu17.addSeparator();

			}

			for (int i = 0; i < contactVector.size(); i++) {

				JMenuItem item = new JMenuItem();
				item.setText(contactVector.get(i).getEmail());
				item.addActionListener(new JMenu17ActionListener());
				jMenu17.add(item);

			}

		} catch (Exception e) {

			jLabel66.setText(e.getMessage());
			eventErrorVenster.pack();
			eventErrorVenster.setLocationRelativeTo(null);
			eventErrorVenster.setVisible(true);

		}

	}

	class JMenu17ActionListener implements ActionListener {
		@Override
		public void actionPerformed(ActionEvent e) {

			try {
				JMenuItem item = new JMenuItem();
				item = (JMenuItem) e.getSource();
				
				contactVenster.setTitle("Contact bewerken");
				contactVenster.pack();
				contactVenster.setLocationRelativeTo(null);
				contactVenster.setVisible(true);

				String email = item.getText();
				Vector<objects.Contact> v = makeContactList();
				int index = 0;
				for (int i = 0; i < v.size(); i++) {
					if (compareStrings(v.elementAt(i).getEmail(), email)) {
						index = i;
					}
				}
				objects.Contact contact = v.elementAt(index);
				gEmail = contact.getEmail();
				if (contact instanceof objects.Student) {
					objects.Student stud = (objects.Student) contact;
					jComboBox3.setSelectedItem("Student");
					gOldType = "Student";
					jTextField6.setText(stud.getName());
					jTextField18.setText(stud.getForename());
					jTextField19.setText(stud.getEmail());
					jTextField20.setText(stud.getMoreInformation());
					jTextField21.setText(stud.getAlternativeEmail());
					jTextField23.setText(stud.getPhoneNumber());
					Vector<objects.Project> v1 = db.rPS.getProjects(stud
							.getEmail());
					Vector<String> v1String = new Vector<String>();
					for (int i = 0; i < v1.size(); i++) {
						v1String.add(v1.elementAt(i).getName());
						db.rPS.delete(v1.elementAt(i).getName(), stud
								.getEmail());
					}

					jList9.setListData(v1String);
					jLabel56.setText("Ingeschreven projecten:");
					jLabel57.setText("Alle projecten:");

					Vector<objects.Project> v2 = db.proj.getAllProjects();
					Vector<String> v3 = new Vector<String>();
					for (int i = 0; i < v2.size(); i++) {
						v3.add(v2.get(i).getName());
					}

					jList10.setListData(v3);

				} else if (contact instanceof objects.Teacher) {
					objects.Teacher teach = (objects.Teacher) contact;
					jComboBox3.setSelectedItem("Professor/Assistent");
					gOldType = "Professor/Assistent";
					jTextField6.setText(teach.getName());
					jTextField18.setText(teach.getForename());
					jTextField19.setText(teach.getEmail());
					jTextField20.setText(teach.getMoreInformation());
					jTextField23.setText(teach.getPhoneNumber());
					jTextField22.setText(teach.getOffice());
					jComboBox4.setSelectedItem(teach.getTitle());
					Vector<objects.Course> v1 = db.rCTeach.getCourses(teach
							.getEmail());
					Vector<String> v1String = new Vector<String>();
					for (int i = 0; i < v1.size(); i++) {
						v1String.add(v1.elementAt(i).getName());
						db.rCTeach.delete(v1.elementAt(i).getName(), teach
								.getEmail());
					}

					jList9.setListData(v1String);
					jLabel56.setText("Geeft cursussen:");
					jLabel57.setText("Alle cursussen:");
					Vector<objects.Course> v2 = db.course.getAllCourses();
					Vector<String> v3 = new Vector<String>();
					for (int i = 0; i < v2.size(); i++) {
						v3.add(v2.get(i).getName());
					}
					jList10.setListData(v3);

				} else {
					objects.Contact cont = (objects.Contact) contact;
					jComboBox3.setSelectedItem("Gewone Contactpersoon");
					gOldType = "Gewone Contactpersoon";
					jTextField6.setText(cont.getName());
					jTextField18.setText(cont.getForename());
					jTextField19.setText(cont.getEmail());
					jTextField20.setText(cont.getMoreInformation());
					jTextField23.setText(cont.getPhoneNumber());
				}
			}

			catch (Exception v) {
				jLabel66.setText(v.getMessage());
				eventErrorVenster.pack();
				eventErrorVenster.setLocationRelativeTo(null);
				eventErrorVenster.setVisible(true);
			}
		}
	}

	private void disableExam() {

		jLabel48.setEnabled(false);
		jLabel49.setEnabled(false);
		jLabel50.setEnabled(false);
		jLabel51.setEnabled(false);

		jTextField37.setText("");
		jTextField37.setEnabled(false);
		jTextField36.setText("");
		jTextField36.setEnabled(false);

		jCheckBox2.setEnabled(false);
		jComboBox6.setEnabled(false);

	}

	private void disableLesson() {

		jLabel42.setEnabled(false);
		jLabel43.setEnabled(false);
		jLabel44.setEnabled(false);
		jLabel68.setEnabled(false);
		jComboBox37.setEnabled(false);
		jTextField33.setEnabled(false);
		jTextField34.setEnabled(false);
		jComboBox5.setEnabled(false);
		jLabel68.setEnabled(false);
	}

	private void enableLesson() {
		jLabel42.setEnabled(true);
		jLabel43.setEnabled(true);
		jLabel44.setEnabled(true);
		jTextField33.setEnabled(true);
		jTextField34.setEnabled(true);
		jComboBox5.setEnabled(true);
		jComboBox37.setEnabled(true);
		jLabel68.setEnabled(true);
	}

	private void disableDeadline() {
		jLabel62.setEnabled(false);
		jComboBox11.setEnabled(false);
	}

	private void enableDeadline() {
		jLabel62.setEnabled(true);
		jComboBox11.setEnabled(true);
	}

	class JMenu10ActionListener implements ActionListener {
		// Bewerk taak
		@Override
		public void actionPerformed(ActionEvent e) {
			try {
				jMenu15.removeAll();
				clearTaskVenster();
				JMenuItem item = new JMenuItem();
				item = (JMenuItem) e.getSource();

				objects.Task taak = db.task.getTask(item.getText());
				objects.Project project = db.proj.getProject(item.getText());
				objects.Exam exam = db.exam.getExam(item.getText());

				if (taak != null) {
					disableExam();
					jTextField1.setText(taak.getName());
					jTextPane7.setText(taak.getDescription());
					jTextPane9.setText(taak.getMoreInformation());
					jComboBox10.setSelectedItem(taak.getGrades());
					if (taak.getDone().equals("T")) {
						jCheckBox1.setSelected(true);
					} else {
						jCheckBox1.setSelected(false);
					}
				} else if (project != null) {
					disableExam();
					jTextField1.setText(project.getName());
					jTextPane7.setText(project.getDescription());
					jRadioButton10.setSelected(true);
					jTextPane10.setText(project.getPlanning());
					jTextPane9.setText(project.getMoreInformation());

					if (Main.admin) {
						jLabel47.setEnabled(false);
						jTextPane9.setEnabled(false);
					}
				} else if (exam != null) {
					jTextField1.setText(exam.getName());
					jTextPane7.setText(exam.getDescription());
					jRadioButton9.setSelected(true);
					jTextField36.setText(exam.getRoom());
					jTextField37.setText(exam.getHours());

					if (exam.getType().equals("P")) {
						jCheckBox2.setSelected(true);
					}

					if (exam.getOral().equals("T")) {
						jComboBox6.setSelectedItem("Mondeling");
					}

					else {
						jComboBox6.setSelectedItem("Schriftelijk");
					}

					jLabel61.setEnabled(false);
					jTextPane10.setEnabled(false);
					jTextPane9.setText(project.getMoreInformation());
				}

				taskVenster.setTitle("Bewerk taak");
				taskVenster.pack();
				taskVenster.setLocationRelativeTo(null);
				taskVenster.setVisible(true);

			} catch (Exception v) {
				jLabel66.setText(v.getMessage());
				eventErrorVenster.pack();
				eventErrorVenster.setLocationRelativeTo(null);
				eventErrorVenster.setVisible(true);
			}
		}
	}

	class JMenu14ActionListener implements ActionListener {
		@Override
		public void actionPerformed(ActionEvent e) {
			try {
				final JMenuItem item = (JMenuItem) e.getSource();

				verwijderVenster.pack();
				verwijderVenster.setLocationRelativeTo(null);
				verwijderVenster.setVisible(true);

				jButton12.addActionListener(new ActionListener() {

					public void actionPerformed(ActionEvent evt) {
						try {

							db.task.delete(item.getText());

						} catch (Exception e) {
							jLabel66.setText(e.getMessage());
							eventErrorVenster.pack();
							eventErrorVenster.setLocationRelativeTo(null);
							eventErrorVenster.setVisible(true);
						}
					}
				});
			} catch (Exception v) {
				jLabel66.setText(v.getMessage());
				eventErrorVenster.pack();
				eventErrorVenster.setLocationRelativeTo(null);
				eventErrorVenster.setVisible(true);
			}
		}
	}

	class JMenu6ActionListener implements ActionListener {
		@Override
		public void actionPerformed(ActionEvent e) {
			try {
				JMenuItem item = new JMenuItem();
				item = (JMenuItem) e.getSource();
				objects.Course course = db.course.getCourse(item.getText());
				for (int i = -10; i < 10; i++) {
					jComboBox9.addItem(Calendar.getInstance()
							.get(Calendar.YEAR)
							+ i);
				}

				jTextField10.setText(course.getName());
				jTextPane3.setText(course.getDescription());
				jComboBox9.setSelectedItem(Integer.parseInt(course
						.getBeginYear()));
				jTextPane4.setText(course.getMoreInformation());

				if (!Main.admin) {
					jLabel1.setEnabled(false);
					jTextField10.setEnabled(false);
					jLabel17.setEnabled(false);
					jTextPane3.setEnabled(false);
					jLabel18.setEnabled(false);
					jComboBox9.setEnabled(false);
					jLabel19.setEnabled(false);
					jComboBox8.setEnabled(false);
				} else {
					jLabel1.setEnabled(true);
					jTextField10.setEnabled(true);
					jLabel17.setEnabled(true);
					jTextPane3.setEnabled(true);
					jLabel18.setEnabled(true);
					jComboBox9.setEnabled(true);
					jLabel19.setEnabled(true);
					jComboBox8.setEnabled(true);
				}

				vakVenster.setTitle("Bewerk vak");
				vakVenster.pack();
				vakVenster.setLocationRelativeTo(null);
				vakVenster.setVisible(true);

			} catch (Exception v) {
				jLabel66.setText(v.getMessage());
				eventErrorVenster.pack();
				eventErrorVenster.setLocationRelativeTo(null);
				eventErrorVenster.setVisible(true);
		}
	}
	}

	class JMenu12ActionListener implements ActionListener {
		@Override
		public void actionPerformed(ActionEvent e) {
			try {
				final JMenuItem item = (JMenuItem) e.getSource();
				verwijderVenster.pack();
				verwijderVenster.setLocationRelativeTo(null);
				verwijderVenster.setVisible(true);

				verwijderVenster.toFront();

				jButton12.addActionListener(new ActionListener() {
					@Override
					public void actionPerformed(ActionEvent evt) {
						try {
							db.file.delete(item.getText());
						} catch (Exception e) {
							jLabel66.setText(e.getMessage());
							eventErrorVenster.pack();
							eventErrorVenster.setLocationRelativeTo(null);
							eventErrorVenster.setVisible(true);
						}
					}
				});

				jMenu12.removeAll();
			}

			catch (Exception v) {
				jLabel66.setText(v.getMessage());
				eventErrorVenster.pack();
				eventErrorVenster.setLocationRelativeTo(null);
				eventErrorVenster.setVisible(true);
			}
		}
	}

	class JMenu16ActionListener implements ActionListener {
		// Verwijder gebeurtenis
		@Override
		public void actionPerformed(ActionEvent e) {
			try {
				clearEventVenster();
				final JMenuItem item = (JMenuItem) e.getSource();
				verwijderVenster.pack();
				verwijderVenster.setLocationRelativeTo(null);
				verwijderVenster.setVisible(true);

				jMenu16.removeAll();
				jButton12.addActionListener(new ActionListener() {
					@Override
					public void actionPerformed(ActionEvent evt) {
						try {
							Vector<objects.Lesson> lessonVector;
							Vector<objects.Event> eventVector;
							Vector<objects.Event> deadlineVector;

							lessonVector = db.lesson.getAllLessons();
							eventVector = db.event.getAllEvents(false);
							deadlineVector = db.event.getAllDeadlines();

							for (int i = 0; i < lessonVector.size(); i++) {
								if (lessonVector.get(i).getSummary().equals(
										item.getText())) {
									db.lesson.delete(lessonVector.get(i)
											.getStart(), lessonVector.get(i)
											.getSummary());
									verwijderVenster.setVisible(false);
									return;
								}
							}
							for (int i = 0; i < eventVector.size(); i++) {
								if (eventVector.get(i).getSummary().equals(
										item.getText())) {
									db.event.delete(eventVector.get(i)
											.getStart(), eventVector.get(i)
											.getSummary());
									verwijderVenster.setVisible(false);
									return;
								}
							}

							for (int i = 0; i < deadlineVector.size(); i++) {
								if (deadlineVector.get(i).getSummary().equals(
										item.getText())) {
									db.event.delete(deadlineVector.get(i)
											.getStart(), deadlineVector.get(i)
											.getSummary());
									verwijderVenster.setVisible(false);
									return;
								}
							}
						} catch (Exception e) {
							jLabel66.setText(e.getMessage());
							eventErrorVenster.pack();
							eventErrorVenster.setLocationRelativeTo(null);
							eventErrorVenster.setVisible(true);
						}
					}
				});
				jMenu15.remove(item);
				jMenu16.remove(item);
			} catch (Exception v) {
				jLabel66.setText(v.getMessage());
				eventErrorVenster.pack();
				eventErrorVenster.setLocationRelativeTo(null);
				eventErrorVenster.setVisible(true);
			}
		}
	}

	class JMenu18ActionListener implements ActionListener {
		// Verwijder gebeurtenis
		@Override
		public void actionPerformed(ActionEvent e) {
			final JMenuItem item = (JMenuItem) e.getSource();

			
			verwijderVenster.pack();
			verwijderVenster.setLocationRelativeTo(null);
			verwijderVenster.setVisible(true);
			
			jButton12.addActionListener(new ActionListener() {
				@Override
				public void actionPerformed(ActionEvent evt) {
					try {
						

						String email = item.getText();
						Vector<objects.Contact> v = makeContactList();
						int index = 0;
						for (int i = 0; i < v.size(); i++) {
							if (compareStrings(v.elementAt(i).getEmail(), email)) {
								index = i;
							}
						}

						objects.Contact contact = v.elementAt(index);
						String email2 = contact.getEmail();
						if (contact instanceof objects.Teacher) {
							db.teach.delete(email2);
						} else if (contact instanceof objects.Student) {
							db.stud.delete(email2);
						} else {
							db.contact.delete(email2);
						}

						refreshContactMenu();
						jList8.setModel(makeContactListModel());
					} catch (Exception e) {
						jLabel66.setText(e.getMessage());
						eventErrorVenster.pack();
						eventErrorVenster.setLocationRelativeTo(null);
						eventErrorVenster.setVisible(true);
					}
				}
			});
			
		
			
		}
	}

	class JMenu13ActionListener implements ActionListener {
		public void actionPerformed(ActionEvent e) {
			try {

				clearBestandsVenster();

				JMenuItem item = new JMenuItem();
				item = (JMenuItem) e.getSource();

				objects.File file = db.file.getFile(item.getText());

				File realFile = new File(file.getPathname());

				if (realFile.exists()) {

					Vector<Task> taskVector = db.rTF.getTasks(item.getText());
					final DefaultListModel taskVector2 = new DefaultListModel();

					for (int i = 0; i < taskVector.size(); i++) {

						taskVector2.addElement((String) taskVector.get(i).getName());

					}
					jList12.setModel(taskVector2);

					Vector<Course> courseVector = db.rCF.getCourses(item
							.getText());
					final DefaultListModel courseVector2 = new DefaultListModel();
					
					for (int i = 0; i < courseVector.size(); i++) {

						courseVector2.addElement((String) courseVector.get(i).getName());

					}
					jList11.setModel(courseVector2);

					jFileChooser1.setSelectedFile(realFile.getAbsoluteFile());

					jButton27.addActionListener(new ActionListener() {

						@Override
						public void actionPerformed(ActionEvent evt) {

							try {

								courseVector2.addElement((String) jComboBox27
										.getSelectedItem());
								jList11.setModel(courseVector2);

							} catch (Exception e) {

								jLabel66.setText(e.getMessage());
								eventErrorVenster.pack();
								eventErrorVenster.setLocationRelativeTo(null);
								eventErrorVenster.setVisible(true);

							}
						}
					});

					jButton29.addActionListener(new ActionListener() {

						@Override
						public void actionPerformed(ActionEvent e) {

							courseVector2.removeElement((String) jList11.getSelectedValue());
							jList11.setModel(courseVector2);

						}
					});

					jButton28.addActionListener(new ActionListener() {

						@Override
						public void actionPerformed(ActionEvent evt) {

							try {
								taskVector2.addElement((String) jComboBox7
										.getSelectedItem());
								jList12.setModel(taskVector2);

							} catch (Exception e) {

								jLabel66.setText(e.getMessage());
								eventErrorVenster.pack();
								eventErrorVenster.setLocationRelativeTo(null);
								eventErrorVenster.setVisible(true);

							}
						}
					});

					jButton30.addActionListener(new ActionListener() {

						@Override
						public void actionPerformed(ActionEvent e) {

							taskVector2.removeElement((jList12.getSelectedValue()));
							jList12.setModel(taskVector2);

						}
					});

					jTextPane2.setText(file.getMoreInformation());

					bestandsVenster.setTitle("Bewerk bestand");
					bestandsVenster.pack();
					bestandsVenster.setLocationRelativeTo(null);
					bestandsVenster.toFront();
					bestandsVenster.setVisible(true);

				} else {

					nietGevondenVenster.pack();
					nietGevondenVenster.setLocationRelativeTo(null);
					nietGevondenVenster.setVisible(true);

				}
			} catch (Exception x) {
				jLabel66.setText(x.getMessage());
				eventErrorVenster.pack();
				eventErrorVenster.setLocationRelativeTo(null);
				eventErrorVenster.setVisible(true);
			}
		}
	}

	class JMenu15ActionListener implements ActionListener {
		@Override
		public void actionPerformed(ActionEvent e) {
			try {

				clearEventVenster();

				jMenu15.removeAll();

				JMenuItem item = new JMenuItem();
				item = (JMenuItem) e.getSource();

				Vector<objects.Lesson> lessonVector = db.lesson.getAllLessons();
				Vector<objects.Event> eventVector = db.event
						.getAllEvents(false);
				Vector<objects.Event> deadlineVector = db.event
						.getAllDeadlines();

				for (int i = 0; i < lessonVector.size(); i++) {

					if (lessonVector.get(i).getCourseName().equals(
							item.getText())) {
						

						objects.Lesson lesson = lessonVector.get(i);

						jTextPane5.setText(lesson.getSummary());

						String start = lesson.getStart();
						DBDateTime startDateTime = DBDateTime.create(start);

						String einde = lesson.getEnd();
						
						DBDateTime endDateTime;
						
						if(einde != null){
							
							endDateTime = DBDateTime.create(einde);
							
						}
						else{
							
							endDateTime = null;
							
						}
						
						DBDateTime warningDateTime = null;

						String warning = lesson.getWarningDate();
						
						if(warning != null){
							
							warningDateTime = DBDateTime.create(warning);
							
						}

						jComboBox12.setSelectedItem(startDateTime.getYear());
						jComboBox13.setSelectedItem(startDateTime.getMonth());
						jComboBox14.setSelectedItem(startDateTime.getDay());
						jComboBox15.setSelectedItem(startDateTime.getHours());
						jComboBox16.setSelectedItem(startDateTime.getMinutes());

						if (endDateTime != null) {

							jComboBox17.setSelectedItem(endDateTime.getYear());
							jComboBox18.setSelectedItem(endDateTime.getMonth());
							jComboBox19.setSelectedItem(endDateTime.getDay());
							jComboBox20.setSelectedItem(endDateTime.getHours());
							jComboBox21.setSelectedItem(endDateTime
									.getMinutes());

						}

						if (warningDateTime != null) {

							jComboBox22.setSelectedItem(warningDateTime
									.getYear());
							jComboBox23.setSelectedItem(warningDateTime
									.getMonth());
							jComboBox24.setSelectedItem(warningDateTime
									.getDay());
							jComboBox25.setSelectedItem(warningDateTime
									.getHours());
							jComboBox26.setSelectedItem(warningDateTime
									.getMinutes());

						}

						jTextPane6.setText(lesson.getMoreInformation());
						

						if (!Main.admin) {

							Component[] componentArray = jPanel9
									.getComponents();

							for (int j = 0; j < componentArray.length; j++) {

								if (componentArray[j] != jButton23
										&& componentArray[j] != jButton24
										&& componentArray[j] != jLabel41
										&& componentArray[j] != jTextPane6) {

									componentArray[j].setEnabled(false);

								}
							}
							jRadioButton5.setEnabled(false);
							
							jRadioButton6.setEnabled(true);
							jRadioButton6.setSelected(true);
							disableLesson();
							
							jRadioButton7.setEnabled(false);
						}
						else{
							
							jRadioButton5.setEnabled(true);
							
							jRadioButton6.setEnabled(true);
							jRadioButton6.setSelected(true);
							
							enableLesson();
							disableDeadline();
							
							jRadioButton7.setEnabled(true);
							
						}
					}
				}
				for (int i = 0; i < eventVector.size(); i++) {
					if (eventVector.get(i).getSummary().equals(item.getText())) {
						objects.Event event = eventVector.get(i);
						jTextPane5.setText(event.getSummary());
						String start = event.getStart();
						DBDateTime startDateTime = DBDateTime.create(start);
						jComboBox12.setSelectedItem(startDateTime.getYear());
						jComboBox13.setSelectedItem(startDateTime.getMonth());
						jComboBox14.setSelectedItem(startDateTime.getDay());
						jComboBox15.setSelectedItem(startDateTime.getHours());
						jComboBox16.setSelectedItem(startDateTime.getMinutes());
						String einde = event.getEnd();
						if (einde != null) {
							DBDateTime endDateTime = DBDateTime.create(einde);
							jComboBox17.setSelectedItem(endDateTime.getYear());
							jComboBox18.setSelectedItem(endDateTime.getMonth());
							jComboBox19.setSelectedItem(endDateTime.getDay());
							jComboBox20.setSelectedItem(endDateTime.getHours());
							jComboBox21.setSelectedItem(endDateTime
									.getMinutes());
						}
						String warning = event.getWarningDate();

						if (warning != null) {
							DBDateTime warningDateTime = DBDateTime
									.create(warning);
							jComboBox22.setSelectedItem(warningDateTime
									.getYear());
							jComboBox23.setSelectedItem(warningDateTime
									.getMonth());
							jComboBox24.setSelectedItem(warningDateTime
									.getDay());
							jComboBox25.setSelectedItem(warningDateTime
									.getHours());
							jComboBox26.setSelectedItem(warningDateTime
									.getMinutes());
						}

						jTextPane6.setText(event.getMoreInformation());
						disableLesson();
						disableDeadline();
						if (!Main.admin) {
							
							jRadioButton5.setEnabled(true);
							
							disableLesson();
							jRadioButton6.setEnabled(false);
							
							jRadioButton7.setEnabled(true);

						}
					}
				}
				for (int i = 0; i < deadlineVector.size(); i++) {
					if (deadlineVector.get(i).getSummary().equals(
							item.getText())) {
						objects.Event deadline = deadlineVector.get(i);
						jTextPane5.setText(deadline.getSummary());
						String start = deadline.getStart();
						DBDateTime startDateTime = DBDateTime.create(start);
						String einde = deadline.getEnd();
						DBDateTime endDateTime;
						
						if(einde != null){
						
							endDateTime = DBDateTime.create(einde);
							
						}
						else{
							
							endDateTime = null;
							
						}

						String warning = deadline.getWarningDate();
						DBDateTime warningDateTime;
						
						if(warning != null){
							
							warningDateTime = DBDateTime.create(warning);
							
						}
						else{
							
							warningDateTime = null;
							
						}
						

						jComboBox12.setSelectedItem(startDateTime.getYear());
						jComboBox13.setSelectedItem(startDateTime.getMonth());
						jComboBox14.setSelectedItem(startDateTime.getDay());
						jComboBox15.setSelectedItem(startDateTime.getHours());
						jComboBox16.setSelectedItem(startDateTime.getMinutes());

						if (endDateTime != null) {

							jComboBox17.setSelectedItem(endDateTime.getYear());
							jComboBox18.setSelectedItem(endDateTime.getMonth());
							jComboBox19.setSelectedItem(endDateTime.getDay());
							jComboBox20.setSelectedItem(endDateTime.getHours());
							jComboBox21.setSelectedItem(endDateTime
									.getMinutes());
						}

						if (warningDateTime != null) {
							jComboBox22.setSelectedItem(warningDateTime
									.getYear());
							jComboBox23.setSelectedItem(warningDateTime
									.getMonth());
							jComboBox24.setSelectedItem(warningDateTime
									.getDay());
							jComboBox25.setSelectedItem(warningDateTime
									.getHours());
							jComboBox26.setSelectedItem(warningDateTime
									.getMinutes());
						}

						jTextPane6.setText(deadline.getMoreInformation());
						
						disableLesson();
						enableDeadline();
						
						if (!Main.admin) {
							Component[] componentArray = jPanel9
									.getComponents();
							for (int j = 0; j < componentArray.length; j++) {
								if (componentArray[j] != jButton23
										&& componentArray[j] != jButton24
										&& componentArray[j] != jLabel41
										&& componentArray[j] != jTextPane6) {
									componentArray[j].setEnabled(false);
								}
							}
							
							jRadioButton5.setEnabled(true);
							
							jRadioButton6.setEnabled(false);

							jRadioButton7.setEnabled(true);
							jRadioButton7.setSelected(true);
						}
						else{
							
							jRadioButton5.setEnabled(true);
							jRadioButton6.setEnabled(true);
							jRadioButton7.setEnabled(true);
							
						}
					}
				}

				gebeurtenisVenster.setTitle("Bewerk gebeurtenis");
				gebeurtenisVenster.pack();
				gebeurtenisVenster.setLocationRelativeTo(null);
				gebeurtenisVenster.setVisible(true);

			} catch (Exception v) {
				jLabel66.setText(v.getMessage());
				eventErrorVenster.pack();
				eventErrorVenster.setLocationRelativeTo(null);
				eventErrorVenster.setVisible(true);
			}
		}
	}

	private void jMenu12MouseEntered(java.awt.event.MouseEvent evt) {// GEN-FIRST:event_jMenu12MouseEntered
		try {

			Vector<objects.File> fileVec = db.file.getAllFiles();
			for (int i = 0; i < fileVec.size(); i++) {
				JMenuItem item = new JMenuItem();
				item.addActionListener(new JMenu12ActionListener());
				item.setText((fileVec.get(i)).getPathname());

				jMenu12.add(item);
			}
		} catch (Exception e) {
			jLabel66.setText(e.getMessage());
			eventErrorVenster.pack();
			eventErrorVenster.setLocationRelativeTo(null);
			eventErrorVenster.setVisible(true);
		}
	}// GEN-LAST:event_jMenu12MouseEntered

	private void jMenu12MouseClicked(java.awt.event.MouseEvent evt) {// GEN-FIRST:event_jMenu12MouseClicked

		jMenu12.removeAll();

	}// GEN-LAST:event_jMenu12MouseClicked

	private void jButton12ActionPerformed(java.awt.event.ActionEvent evt) {// GEN-FIRST:event_jButton12ActionPerformed
		verwijderVenster.setVisible(false);
		remove = true;
	}// GEN-LAST:event_jButton12ActionPerformed

	private void jButton13ActionPerformed(java.awt.event.ActionEvent evt) {// GEN-FIRST:event_jButton13ActionPerformed
		remove = false;
		verwijderVenster.setVisible(false);
	}// GEN-LAST:event_jButton13ActionPerformed

	private void jMenu13MouseEntered(java.awt.event.MouseEvent evt) {// GEN-FIRST:event_jMenu13MouseEntered

		try {

			Vector<objects.File> fileVec = db.file.getAllFiles();

			for (int i = 0; i < fileVec.size(); i++) {

				JMenuItem item = new JMenuItem();
				item.addActionListener(new JMenu13ActionListener());
				item.setText((fileVec.get(i)).getPathname());

				jMenu13.add(item);
			}

		} catch (Exception e) {

			jLabel66.setText(e.getMessage());
			eventErrorVenster.pack();
			eventErrorVenster.setLocationRelativeTo(null);
			eventErrorVenster.setVisible(true);

		}

	}// GEN-LAST:event_jMenu13MouseEntered

	private void jMenuItem6ActionPerformed(java.awt.event.ActionEvent evt) {// GEN-FIRST:event_jMenuItem6ActionPerformed

		for (int i = -10; i < 10; i++) {

			jComboBox9.addItem(Integer.toString(Calendar.getInstance().get(
					Calendar.YEAR)
					+ i));

		}

		this.setEnabled(false);
		vakVenster.toFront();
		vakVenster.pack();
		vakVenster.setLocationRelativeTo(null);
		vakVenster.setTitle("Nieuw vak");
		vakVenster.setVisible(true);

	}// GEN-LAST:event_jMenuItem6ActionPerformed

	private void jMenuItem1ActionPerformed(java.awt.event.ActionEvent evt) {// GEN-FIRST:event_jMenuItem1ActionPerformed

		if (!Main.admin) {

			jRadioButton9.setEnabled(false);
			jRadioButton10.setEnabled(false);
			jLabel8.setEnabled(false);
			jComboBox10.setEnabled(false);
			jLabel45.setEnabled(false);
			jLabel60.setEnabled(false);

		} else {

			jRadioButton9.setEnabled(true);
			jRadioButton10.setEnabled(true);
			jLabel8.setEnabled(true);
			jComboBox10.setEnabled(true);
			jLabel45.setEnabled(true);
			jLabel60.setEnabled(false);

		}

		if (jRadioButton8.isSelected()) {

			Component[] components = jPanel14.getComponents();

			for (int i = 0; i < components.length; i++) {

				components[i].setEnabled(false);

			}

			jLabel61.setEnabled(false);
			jTextPane10.setEnabled(false);

		}

		taskVenster.setTitle("Nieuwe taak");

		taskVenster.pack();
		taskVenster.setLocationRelativeTo(null);
		taskVenster.setVisible(true);

		this.setEnabled(false);
		taskVenster.toFront();

	}// GEN-LAST:event_jMenuItem1ActionPerformed

	private void jMenuItem14ActionPerformed(java.awt.event.ActionEvent evt) {// GEN-FIRST:event_jMenuItem14ActionPerformed

		try {

			clearEventVenster();

			Vector<Task> taskVector = db.task.getAllTasks();
			Vector<Course> courseVector = db.course.getAllCourses();

			jComboBox11.addItem("");
			for (int i = 0; i < taskVector.size(); i++) {

				jComboBox11.addItem(taskVector.get(i).getName());

			}
			
			if(!Main.admin){
				
				jRadioButton6.setEnabled(false);
				
			}
			else{
				
				jRadioButton6.setEnabled(true);
				
			}

			gebeurtenisVenster.pack();
			gebeurtenisVenster.setLocationRelativeTo(null);
			gebeurtenisVenster.setTitle("Nieuwe gebeurtenis");
			gebeurtenisVenster.setVisible(true);
			gebeurtenisVenster.toFront();
			this.setEnabled(false);

		} catch (Exception e) {

			jLabel66.setText(e.getMessage());
			eventErrorVenster.pack();
			eventErrorVenster.setLocationRelativeTo(null);
			eventErrorVenster.setVisible(true);

		}
	}// GEN-LAST:event_jMenu12MouseEntered

	private void jMenuItem21ActionPerformed(java.awt.event.ActionEvent evt) {// GEN-FIRST:event_jMenuItem21ActionPerformed

		contactVenster.setVisible(true);
		contactVenster.setTitle("Contact toevoegen");
		contactVenster.setBounds(100, 100, 850, 500);
		contactVenster.toFront();
		this.setEnabled(false);
		jTextField6.setText("");
		jTextField18.setText("");
		jTextField19.setText("");
		jTextField20.setText("");
		jTextField23.setText("");
		jTextField22.setText("");
		jTextField21.setText("");
		jComboBox3.setSelectedItem("Professor/Assistent");
		try {
			jLabel56.setText("Geeft cursussen");
			jLabel57.setText("Alle cursussen");
			Vector<objects.Course> v = db.course.getAllCourses();
			Vector<String> v1 = new Vector<String>();
			for (int i = 0; i < v.size(); i++) {
				v1.add(v.get(i).getName());
			}
			DefaultListModel lst = new DefaultListModel();
			jList9.setModel(lst);
			jList10.setListData(v1);
		} catch (Exception e) {
			jLabel66.setText(e.getMessage());
			eventErrorVenster.pack();
			eventErrorVenster.setLocationRelativeTo(null);
			eventErrorVenster.setVisible(true);
		}

	}// GEN-LAST:event_jMenuItem21ActionPerformed

	private void jMenu8ActionPerformed(java.awt.event.ActionEvent evt) {// GEN-FIRST:event_jMenu8ActionPerformed
	}// GEN-LAST:event_jMenu8ActionPerformed

	private void jButton14ActionPerformed(java.awt.event.ActionEvent evt) {// GEN-FIRST:event_jButton14ActionPerformed
		aboutVenster.setVisible(false);
	}// GEN-LAST:event_jButton14ActionPerformed

	private void jMenuItem27ActionPerformed(java.awt.event.ActionEvent evt) {// GEN-FIRST:event_jMenuItem27ActionPerformed

		exportVenster.pack();
		exportVenster.setLocationRelativeTo(null);
		exportVenster.setVisible(true);

	}// GEN-LAST:event_jMenuItem27ActionPerformed

	private void jButton15ActionPerformed(java.awt.event.ActionEvent evt) {// GEN-FIRST:event_jButton15ActionPerformed
		contactVenster.setVisible(true);
		contactVenster.setTitle("Contact toevoegen");
		contactVenster.setBounds(100, 100, 850, 500);
		jTextField6.setText("");
		jTextField18.setText("");
		jTextField19.setText("");
		jTextField20.setText("");
		jTextField23.setText("");
		jTextField22.setText("");
		jTextField21.setText("");
		jComboBox3.setSelectedItem("Professor/Assistent");
		try {
			jLabel56.setText("Geeft cursussen");
			jLabel57.setText("Alle cursussen");
			Vector<objects.Course> v = db.course.getAllCourses();
			Vector<String> v1 = new Vector<String>();
			for (int i = 0; i < v.size(); i++) {
				v1.add(v.get(i).getName());
			}
			DefaultListModel lst = new DefaultListModel();
			jList9.setModel(lst);
			jList10.setListData(v1);
		} catch (Exception e) {
			jLabel66.setText(e.getMessage());
			eventErrorVenster.pack();
			eventErrorVenster.setLocationRelativeTo(null);
			eventErrorVenster.setVisible(true);
		}
	}// GEN-LAST:event_jButton15ActionPerformed

	private void jButton16ActionPerformed(java.awt.event.ActionEvent evt) {// GEN-FIRST:event_jButton16ActionPerformed
		contactVenster.setVisible(true);
		contactVenster.setTitle("Contact bewerken");
		contactVenster.setBounds(100, 100, 850, 500);
		JViewport temp = jScrollPane15.getViewport();
		JList temp2 = (JList) temp.getView();
		int index = temp2.getSelectedIndex();
		if (index == -1) {
			jLabel66.setText("U moet een persoon selecteren");
			eventErrorVenster.pack();
			eventErrorVenster.setLocationRelativeTo(null);
			eventErrorVenster.setVisible(true);
		} else {
			Vector<objects.Contact> v = makeContactList();
			gEmail = v.get(index).getEmail();
			try {
				if (v.get(index) instanceof objects.Student) {
					objects.Student stud = (objects.Student) v.get(index);
					jComboBox3.setSelectedItem("Student");
					gOldType = "Student";
					jTextField6.setText(stud.getName());
					jTextField18.setText(stud.getForename());
					jTextField19.setText(stud.getEmail());
					jTextField20.setText(stud.getMoreInformation());
					jTextField21.setText(stud.getAlternativeEmail());
					jTextField23.setText(stud.getPhoneNumber());
					Vector<objects.Project> v1 = db.rPS.getProjects(stud
							.getEmail());
					Vector<String> v1String = new Vector<String>();
					for (int i = 0; i < v1.size(); i++) {
						v1String.add(v1.elementAt(i).getName());
						db.rPS.delete(v1.elementAt(i).getName(), stud
								.getEmail());
					}

					jList9.setListData(v1String);
					jLabel56.setText("Ingeschreven projecten:");
					jLabel57.setText("Alle projecten:");
					Vector<objects.Project> v2 = db.proj.getAllProjects();
					Vector<String> v3 = new Vector<String>();
					for (int i = 0; i < v2.size(); i++) {
						v3.add(v2.get(i).getName());

					}
					jList10.setListData(v3);
				} else if (v.get(index) instanceof objects.Teacher) {
					objects.Teacher teach = (objects.Teacher) v.get(index);
					jComboBox3.setSelectedItem("Professor/Assistent");
					gOldType = "Professor/Assistent";
					jTextField6.setText(teach.getName());
					jTextField18.setText(teach.getForename());
					jTextField19.setText(teach.getEmail());
					jTextField20.setText(teach.getMoreInformation());
					jTextField23.setText(teach.getPhoneNumber());
					jTextField22.setText(teach.getOffice());
					jComboBox4.setSelectedItem(teach.getTitle());
					Vector<objects.Course> v1 = db.rCTeach.getCourses(teach
							.getEmail());
					Vector<String> v1String = new Vector<String>();
					for (int i = 0; i < v1.size(); i++) {
						v1String.add(v1.elementAt(i).getName());
						db.rCTeach.delete(v1.elementAt(i).getName(), teach
								.getEmail());
					}
					jList9.setListData(v1String);
					jLabel56.setText("Geeft cursussen:");
					jLabel57.setText("Alle cursussen:");
					Vector<objects.Course> v2 = db.course.getAllCourses();
					Vector<String> v3 = new Vector<String>();
					for (int i = 0; i < v2.size(); i++) {
						v3.add(v2.get(i).getName());
					}
					jList10.setListData(v3);
				} else {
					objects.Contact cont = (objects.Contact) v.get(index);
					jComboBox3.setSelectedItem("Gewone Contactpersoon");
					gOldType = "Gewone Contactpersoon";
					jTextField6.setText(cont.getName());
					jTextField18.setText(cont.getForename());
					jTextField19.setText(cont.getEmail());
					jTextField20.setText(cont.getMoreInformation());
					jTextField23.setText(cont.getPhoneNumber());
				}
			} catch (Exception e) {
				jLabel66.setText(e.getMessage());
				eventErrorVenster.pack();
				eventErrorVenster.setLocationRelativeTo(null);
				eventErrorVenster.setVisible(true);
			}
		}
	}// GEN-LAST:event_jButton16ActionPerformed

	private void jButton17ActionPerformed(java.awt.event.ActionEvent evt) {// GEN-FIRST:event_jButton17ActionPerformed
		verwijderVenster.pack();
		verwijderVenster.setLocationRelativeTo(null);
		verwijderVenster.setVisible(true);
		
		jButton12.addActionListener(new ActionListener() {
			@Override
			public void actionPerformed(ActionEvent evt) {
				JViewport temp = jScrollPane15.getViewport();
				JList temp2 = (JList) temp.getView();
				int index = temp2.getSelectedIndex();
				Vector<objects.Contact> v = makeContactList();
				if (index != -1) {
					try {
						String email = v.get(index).getEmail();
						if (v.get(index) instanceof objects.Teacher) {
							db.teach.delete(email);
						} else if (v.get(index) instanceof objects.Student) {
							db.stud.delete(email);
						} else {
							db.contact.delete(email);
						}
					} catch (Exception e) {
						jLabel66.setText(e.getMessage());
						eventErrorVenster.pack();
						eventErrorVenster.setLocationRelativeTo(null);
						eventErrorVenster.setVisible(true);
					}
					jList8.setModel(makeContactListModel());
				}
			}
		});
		
	}// GEN-LAST:event_jButton17ActionPerformed

	private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {// GEN-FIRST:event_jButton2ActionPerformed
		int index = jList7.getSelectedIndex();
		if (index == -1) {
			jLabel66.setText("U moet een persoon selecteren");
			eventErrorVenster.pack();
			eventErrorVenster.setLocationRelativeTo(null);
			eventErrorVenster.setVisible(true);
		} else if (teacherVector.size() <= index) {

		} else {
			contactVenster.setVisible(true);
			contactVenster.setTitle("Profiel lesgever");
			contactVenster.setBounds(100, 100, 850, 500);
			jComboBox3.setEditable(false);
			jTextField6.setEditable(false);
			jTextField18.setEditable(false);
			jTextField18.setEditable(false);
			jTextField19.setEditable(false);
			jTextField20.setEditable(false);
			jTextField23.setEditable(false);
			jTextField22.setEditable(false);
			jButton19.setVisible(false);
			jButton20.setVisible(false);
			jComboBox4.setEditable(false);
			jButton9.setVisible(false);
			jButton10.setText("Sluiten");
			gEmail = teacherVector.get(index).getEmail();
			objects.Teacher teach = (objects.Teacher) teacherVector.get(index);
			jComboBox3.setSelectedItem("Professor/Assistent");
			jComboBox3.setEnabled(false);
			gOldType = "Professor/Assistent";
			jTextField6.setText(teach.getName());
			jTextField18.setText(teach.getForename());
			jTextField19.setText(teach.getEmail());
			jTextField20.setText(teach.getMoreInformation());
			jTextField23.setText(teach.getPhoneNumber());
			jTextField22.setText(teach.getOffice());
			jComboBox4.setSelectedItem(teach.getTitle());
			jComboBox4.setEnabled(false);
			try {

				Vector<objects.Course> v = db.rCTeach.getCourses(teach
						.getEmail());
				Vector<String> v1 = new Vector<String>();
				for (int i = 0; i < v.size(); i++) {
					v1.add(v.elementAt(i).getName());
				}
				jList9.setListData(v1);
				jList10.setVisible(false);
			} catch (Exception e) {
				jLabel66.setText(e.getMessage());
				eventErrorVenster.pack();
				eventErrorVenster.setLocationRelativeTo(null);
				eventErrorVenster.setVisible(true);
			}
		}
	}// GEN-LAST:event_jButton2ActionPerformed

	private void jButton19ActionPerformed(java.awt.event.ActionEvent evt) {// GEN-FIRST:event_jButton19ActionPerformed
		if (jList10.getSelectedIndex() != -1) {
			String newItem = (String) jList10.getSelectedValue();
			ListModel lst = jList9.getModel();
			boolean add = true;
			for (int i = 0; i < lst.getSize(); i++) {
				if (compareStrings(newItem, lst.getElementAt(i).toString())) {
					add = false;
				}
			}
			if (add) {
				Vector<String> v = new Vector<String>();
				for (int i = 0; i < lst.getSize(); i++) {
					v.add(lst.getElementAt(i).toString());
				}
				v.add(newItem);
				jList9.setListData(v);
			}
		}
	}// GEN-LAST:event_jButton19ActionPerformed

	private void jButton20ActionPerformed(java.awt.event.ActionEvent evt) {// GEN-FIRST:event_jButton20ActionPerformed
		if (jList9.getSelectedIndex() != -1) {
			String oldItem = (String) jList9.getSelectedValue();
			ListModel lst = jList9.getModel();

			Vector<String> v = new Vector<String>();
			for (int i = 0; i < lst.getSize(); i++) {
				if (!compareStrings(oldItem, lst.getElementAt(i).toString())) {
					v.add(lst.getElementAt(i).toString());
				}
			}
			jList9.setListData(v);
		}
	}// GEN-LAST:event_jButton20ActionPerformed

	private void jButton7ActionPerformed(java.awt.event.ActionEvent evt) {// GEN-FIRST:event_jButton7ActionPerformed

		try {

			File file = jFileChooser1.getSelectedFile();

			if (db.file.getFile(file.getAbsolutePath()) != null) {

				db.file.delete(file.getAbsolutePath());

			}

			String bestandsNaam = file.getAbsolutePath();
			String beschrijving = jTextPane2.getText();

			db.file.delete(bestandsNaam);
			db.file.add(bestandsNaam, beschrijving);
			
			Vector<objects.Course> courses = db.rCF.getCourses(bestandsNaam);
			for(int i=0;i < courses.size();i++){
				
				db.rCF.delete(courses.get(i).getName(), bestandsNaam);
				
			}
			Vector<objects.Task> tasks = db.rTF.getTasks(bestandsNaam);
			for(int i=0;i < tasks.size();i++){
				
				db.rTF.delete(tasks.get(i).getName(), bestandsNaam);
				
			}

			for (int i = 0; i < jList11.getModel().getSize(); i++) {

				db.rCF.add((String) jList11.getModel().getElementAt(i), file
						.getAbsolutePath());

			}
			for (int i = 0; i < jList12.getModel().getSize(); i++) {

				db.rTF.add((String) jList12.getModel().getElementAt(i), file
						.getAbsolutePath());

			}

			bestandsVenster.setVisible(false);
			this.setEnabled(true);
			this.toFront();


		} catch (Exception e) {

			jLabel66.setText(e.getMessage());
			eventErrorVenster.pack();
			eventErrorVenster.setLocationRelativeTo(null);
			eventErrorVenster.setVisible(true);

		}

	}// GEN-LAST:event_jButton7ActionPerformed

	private void jButton8ActionPerformed(java.awt.event.ActionEvent evt) {// GEN-FIRST:event_jButton8ActionPerformed

		this.setEnabled(true);
		bestandsVenster.setVisible(false);

	}// GEN-LAST:event_jButton8ActionPerformed

	private void jMenu13MouseExited(java.awt.event.MouseEvent evt) {// GEN-FIRST:event_jMenu13MouseExited

	}// GEN-LAST:event_jMenu13MouseExited

	private void jMenu13MouseClicked(java.awt.event.MouseEvent evt) {// GEN-FIRST:event_jMenu13MouseClicked

		jMenu13.removeAll();

	}// GEN-LAST:event_jMenu13MouseClicked

	private void jMenu12MouseExited(java.awt.event.MouseEvent evt) {// GEN-FIRST:event_jMenu12MouseExited

	}// GEN-LAST:event_jMenu12MouseExited

	private void jMenu6MouseEntered(java.awt.event.MouseEvent evt) {// GEN-FIRST:event_jMenu6MouseEntered

		try {

			Vector<objects.Course> courseVec = db.course.getAllCourses();

			for (int i = 0; i < courseVec.size(); i++) {

				JMenuItem item = new JMenuItem();
				item.addActionListener(new JMenu6ActionListener());
				item.setText((courseVec.get(i)).getName());
				jMenu6.add(item);

			}

		} catch (Exception e) {

			jLabel66.setText(e.getMessage());
			eventErrorVenster.pack();
			eventErrorVenster.setLocationRelativeTo(null);
			eventErrorVenster.setVisible(true);

		}

	}// GEN-LAST:event_jMenu6MouseEntered

	private void jButton4ActionPerformed(java.awt.event.ActionEvent evt) {// GEN-FIRST:event_jButton4ActionPerformed

		try {

			String naam = jTextField10.getText();
			String beschrijving = jTextPane3.getText();
			int jaar = Integer
					.parseInt(jComboBox9.getSelectedItem().toString());
			int semester = Integer.parseInt(jComboBox8.getSelectedItem()
					.toString());
			String extra = jTextPane4.getText();

			db.course.delete(naam);
			db.course.add(naam, beschrijving, jaar, semester, extra);

			vakVenster.setVisible(false);
			this.setEnabled(true);
			this.toFront();

		} catch (Exception e) {

			jLabel66.setText(e.getMessage());
			eventErrorVenster.pack();
			eventErrorVenster.setLocationRelativeTo(null);
			eventErrorVenster.setVisible(true);

		}

	}// GEN-LAST:event_jButton4ActionPerformed

	private void jMenu6MouseExited(java.awt.event.MouseEvent evt) {// GEN-FIRST:event_jMenu6MouseExited

	}// GEN-LAST:event_jMenu6MouseExited

	private void jMenu6MenuSelected(javax.swing.event.MenuEvent evt) {// GEN-FIRST:event_jMenu6MenuSelected


	}// GEN-LAST:event_jMenu6MenuSelected

	private void jMenu6FocusLost(java.awt.event.FocusEvent evt) {// GEN-FIRST:event_jMenu6FocusLost

	}// GEN-LAST:event_jMenu6FocusLost

	private void jMenu6StateChanged(javax.swing.event.ChangeEvent evt) {// GEN-FIRST:event_jMenu6StateChanged

		jMenu6.removeAll();
	}// GEN-LAST:event_jMenu6StateChanged

	private void jMenu8StateChanged(javax.swing.event.ChangeEvent evt) {// GEN-FIRST:event_jMenu8StateChanged

		jMenu8.removeAll();

	}// GEN-LAST:event_jMenu8StateChanged

	private void jMenu8MouseEntered(java.awt.event.MouseEvent evt) {// GEN-FIRST:event_jMenu8MouseEntered

		try {

			Vector<objects.Course> courseVec = db.course.getAllCourses();

			for (int i = 0; i < courseVec.size(); i++) {

				JMenuItem item = new JMenuItem();
				item.addActionListener(new JMenu8ActionListener());
				item.setText((courseVec.get(i)).getName());
				jMenu8.add(item);

			}

		} catch (Exception e) {

			jLabel66.setText(e.getMessage());
			eventErrorVenster.pack();
			eventErrorVenster.setLocationRelativeTo(null);
			eventErrorVenster.setVisible(true);

		}

	}// GEN-LAST:event_jMenu8MouseEntered

	private void jMenu13StateChanged(javax.swing.event.ChangeEvent evt) {// GEN-FIRST:event_jMenu13StateChanged

		jMenu13.removeAll();

	}// GEN-LAST:event_jMenu13StateChanged

	private void jMenu12StateChanged(javax.swing.event.ChangeEvent evt) {// GEN-FIRST:event_jMenu12StateChanged

		jMenu12.removeAll();

	}// GEN-LAST:event_jMenu12StateChanged

	private void jRadioButton9ActionPerformed(java.awt.event.ActionEvent evt) {// GEN-FIRST:event_jRadioButton9ActionPerformed

		Component[] components = jPanel14.getComponents();

		for (int i = 0; i < components.length; i++) {

			components[i].setEnabled(true);

		}

		jPanel14.setVisible(true);

		jLabel61.setEnabled(false);
		jTextPane10.setEnabled(false);

	}// GEN-LAST:event_jRadioButton9ActionPerformed

	private void jRadioButton10ActionPerformed(java.awt.event.ActionEvent evt) {// GEN-FIRST:event_jRadioButton10ActionPerformed

		Component[] components = jPanel14.getComponents();

		for (int i = 0; i < components.length; i++) {

			components[i].setEnabled(false);

		}

		jLabel61.setEnabled(true);
		jTextPane10.setEnabled(true);

	}// GEN-LAST:event_jRadioButton10ActionPerformed

	private void jRadioButton8ActionPerformed(java.awt.event.ActionEvent evt) {// GEN-FIRST:event_jRadioButton8ActionPerformed

		Component[] components = jPanel14.getComponents();

		for (int i = 0; i < components.length; i++) {

			components[i].setEnabled(false);

		}

		jLabel61.setEnabled(false);
		jTextPane10.setEnabled(false);

	}// GEN-LAST:event_jRadioButton10ActionPerformed

	private void jMenu4MouseEntered(java.awt.event.MouseEvent evt) {// GEN-FIRST:event_jMenu4MouseEntered

		if (!Main.admin) {

			jMenuItem6.setVisible(false);

		}

	}// GEN-LAST:event_jMenu4MouseEntered

	private void jMenu10MouseEntered(java.awt.event.MouseEvent evt) {// GEN-FIRST:event_jMenu10MouseEntered

		try {

			Vector<objects.Task> taskVec = db.task.getAllTasks();
			Vector<objects.Exam> examVec = db.exam.getAllExams();
			Vector<objects.Project> projectVec = db.proj.getAllProjects();

			for (int i = 0; i < taskVec.size(); i++) {

				JMenuItem item = new JMenuItem();
				item.addActionListener(new JMenu10ActionListener());
				item.setText((taskVec.get(i)).getName());

				jMenu10.add(item);

			}

			if (!examVec.isEmpty()) {

				jMenu10.addSeparator();

			}

			for (int i = 0; i < examVec.size(); i++) {

				JMenuItem item = new JMenuItem();
				item.addActionListener(new JMenu10ActionListener());
				item.setText((examVec.get(i)).getName());

				jMenu10.add(item);

			}

			if (!projectVec.isEmpty()) {

				jMenu10.addSeparator();

			}

			for (int i = 0; i < projectVec.size(); i++) {

				JMenuItem item = new JMenuItem();
				item.addActionListener(new JMenu10ActionListener());
				item.setText((projectVec.get(i)).getName());

				jMenu10.add(item);

			}
		} catch (Exception e) {

			jLabel66.setText(e.getMessage());
			eventErrorVenster.pack();
			eventErrorVenster.setLocationRelativeTo(null);
			eventErrorVenster.setVisible(true);

		}

	}// GEN-LAST:event_jMenu10MouseEntered

	private void jMenu10StateChanged(javax.swing.event.ChangeEvent evt) {// GEN-FIRST:event_jMenu10StateChanged

		jMenu10.removeAll();

	}// GEN-LAST:event_jMenu10StateChanged

	private void jMenu14MouseEntered(java.awt.event.MouseEvent evt) {// GEN-FIRST:event_jMenu14MouseEntered

		try {

			Vector<objects.Task> taskVec = db.task.getAllTasks();
			Vector<objects.Exam> examVec = db.exam.getAllExams();
			Vector<objects.Project> projectVec = db.proj.getAllProjects();

			for (int i = 0; i < taskVec.size(); i++) {

				JMenuItem item = new JMenuItem();
				item.addActionListener(new JMenu14ActionListener());
				item.setText((taskVec.get(i)).getName());

				jMenu14.add(item);

			}

			if (!examVec.isEmpty()) {

				jMenu14.addSeparator();

			}

			for (int i = 0; i < examVec.size(); i++) {

				JMenuItem item = new JMenuItem();
				item.addActionListener(new JMenu14ActionListener());
				item.setText((examVec.get(i)).getName());

				jMenu14.add(item);

			}

			if (!projectVec.isEmpty()) {

				jMenu14.addSeparator();

			}

			for (int i = 0; i < projectVec.size(); i++) {

				JMenuItem item = new JMenuItem();
				item.addActionListener(new JMenu14ActionListener());
				item.setText((projectVec.get(i)).getName());

				jMenu14.add(item);

			}
		} catch (Exception e) {

			jLabel66.setText(e.getMessage());
			eventErrorVenster.pack();
			eventErrorVenster.setLocationRelativeTo(null);
			eventErrorVenster.setVisible(true);

		}

	}// GEN-LAST:event_jMenu14MouseEntered

	private void jMenu14StateChanged(javax.swing.event.ChangeEvent evt) {// GEN-FIRST:event_jMenu14StateChanged

		jMenu14.removeAll();

	}// GEN-LAST:event_jMenu14StateChanged

	private void jButton25ActionPerformed(java.awt.event.ActionEvent evt) {// GEN-FIRST:event_jButton25ActionPerformed

		nietGevondenVenster.setVisible(false);

	}// GEN-LAST:event_jButton25ActionPerformed

	private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {// GEN-FIRST:event_jButton3ActionPerformed

		try {

			if (jRadioButton8.isSelected()) {

				db.task.delete(jTextField1.getText());
				db.task.add(jTextField1.getText(), jTextPane7.getText(),
						jCheckBox1.isSelected(), Integer
								.parseInt((String) jComboBox10
										.getSelectedItem()), jTextPane9
								.getText());

			} else if (jRadioButton9.isSelected()) {

				Character type = null;

				if (jComboBox6.getSelectedItem().equals("Theorie")) {

					type = 'T';

				} else if (jComboBox6.getSelectedItem().equals("Praktijk")) {

					type = 'P';

				} else if (jComboBox6.getSelectedItem().equals("Beide")) {

					type = 'B';

				}
				
				Integer hours = null;
				
				if(jTextField37.getText().isEmpty() || jTextField37.getText().equals("N/A")){
					
					jLabel66.setText("Gelieve een tijdsduur op te geven ( 0 < duur < 4 )");
					eventErrorVenster.pack();
					eventErrorVenster.setLocationRelativeTo(null);
					eventErrorVenster.setVisible(true);
					
				}
				else{
					
					hours = Integer.parseInt(jTextField37.getText());
				
				String room;
				
				if(jTextField36.getText().isEmpty()){
					
					room = "N/A";
					
				}
				else{
					
					room = jTextField36.getText();
					
				}
					

				
				db.exam.delete(jTextField1.getText());
				db.exam.add(jTextField1.getText(), jTextPane7.getText(),
						jCheckBox1.isSelected(), Integer
								.parseInt((String) jComboBox10
										.getSelectedItem()), jTextPane9
								.getText(), room, hours, type,
						jCheckBox2.isSelected());
				
				}
			}
		
				else if (jRadioButton10.isSelected()) {

				db.proj.delete(jTextField1.getText());
				db.proj.add(jTextField1.getText(), jTextPane7.getText(),
						jCheckBox1.isSelected(), Integer
								.parseInt((String) jComboBox10
										.getSelectedItem()), jTextPane9
								.getText(), jTextPane10.getText());

			}

			taskVenster.setVisible(false);
			this.setEnabled(true);
			this.toFront();

		} catch (Exception e) {

			jLabel66.setText(e.getMessage());
			eventErrorVenster.pack();
			eventErrorVenster.setLocationRelativeTo(null);
			eventErrorVenster.setVisible(true);

		}

	}// GEN-LAST:event_jButton3ActionPerformed

	private void jButton23ActionPerformed(java.awt.event.ActionEvent evt) {// GEN-FIRST:event_jButton23ActionPerformed

		try {

			if (jComboBox12.getSelectedItem().equals("")
					|| jComboBox13.getSelectedItem().equals("")
					|| jComboBox14.getSelectedItem().equals("")
					|| jComboBox15.getSelectedItem().equals("")
					|| jComboBox16.getSelectedItem().equals("")) {

				eventErrorVenster.pack();
				eventErrorVenster.setLocationRelativeTo(null);
				jLabel66.setText("Gelieve een startdatum op te geven");
				eventErrorVenster.setVisible(true);

			} else {

				String beschrijving = jTextPane5.getText();
				String start = (String) jComboBox12.getSelectedItem()
						.toString()
						+ (String) jComboBox13.getSelectedItem().toString()
						+ (String) jComboBox13.getSelectedItem().toString()
						+ "T"
						+ (String) jComboBox13.getSelectedItem().toString()
						+ (String) jComboBox13.getSelectedItem().toString()
						+ "00";

				String einde = (String) jComboBox17.getSelectedItem()
						.toString()
						+ (String) jComboBox18.getSelectedItem().toString()
						+ (String) jComboBox19.getSelectedItem().toString()
						+ "T"
						+ (String) jComboBox20.getSelectedItem().toString()
						+ (String) jComboBox21.getSelectedItem().toString()
						+ "00";

				String waarschuwing = (String) jComboBox22.getSelectedItem()
						.toString()
						+ (String) jComboBox23.getSelectedItem().toString()
						+ (String) jComboBox24.getSelectedItem().toString()
						+ "T"
						+ (String) jComboBox25.getSelectedItem().toString()
						+ (String) jComboBox26.getSelectedItem().toString()
						+ "00";

				if (einde.equals("T00")) {

					einde = null;

				}
				if (waarschuwing.equals("T00")) {

					waarschuwing = null;

				}

				String extrainfo = jTextPane6.getText();

				if (jRadioButton5.isSelected()) {

					db.event.delete(start, beschrijving);
					db.event.add(start, einde, beschrijving, false,
							waarschuwing, extrainfo);

				} else if (jRadioButton6.isSelected()) {
					
					Integer day = 0;
					if(jComboBox5.getSelectedItem().toString().equals("Maandag")){
						
						day = 1;
						
					}
					else if(jComboBox5.getSelectedItem().toString().equals("Dinsdag")){
						
						day = 2;
						
					}
					else if(jComboBox5.getSelectedItem().toString().equals("Woensdag")){
						
						day = 3;
						
					}
					else if(jComboBox5.getSelectedItem().toString().equals("Donderdag")){
						
						day = 4;
						
					}
					else if(jComboBox5.getSelectedItem().toString().equals("Vrijdag")){
						
						day = 5;
						
					}
					else if(jComboBox5.getSelectedItem().toString().equals("Zaterdag")){
						
						day = 6;
						
					}
					else if(jComboBox5.getSelectedItem().toString().equals("Zaterdag")){
						
						day = 6;
						
					}
					else if(jComboBox5.getSelectedItem().toString().equals("Zondag")){
						
						day = 7;
						
					}	

					db.lesson.delete(start, beschrijving);
					db.lesson.add(start, einde, beschrijving, waarschuwing,
							extrainfo, jTextField33.getText(), day, Integer
									.valueOf(jTextField34.getText()),
							jComboBox37.getSelectedItem().toString());

				} else if (jRadioButton7.isSelected()) {

					db.event.delete(start, beschrijving);
					db.event.add(start, einde, beschrijving, true,
							waarschuwing, extrainfo);

				}
			}

			gebeurtenisVenster.setVisible(false);
			this.setEnabled(true);
			this.toFront();

		} catch (Exception e) {

			jLabel66.setText(e.getMessage());
			eventErrorVenster.pack();
			eventErrorVenster.setLocationRelativeTo(null);
			eventErrorVenster.setVisible(true);

		}

	}// GEN-LAST:event_jButton23ActionPerformed

	private void jRadioButton6ActionPerformed(java.awt.event.ActionEvent evt) {// GEN-FIRST:event_jRadioButton6ActionPerformed

		enableLesson();
		disableDeadline();

	}// GEN-LAST:event_jRadioButton6ActionPerformed

	private void jRadioButton7ActionPerformed(java.awt.event.ActionEvent evt) {// GEN-FIRST:event_jRadioButton7ActionPerformed

		enableDeadline();
		disableLesson();

	}// GEN-LAST:event_jRadioButton7ActionPerformed

	private void jRadioButton5ActionPerformed(java.awt.event.ActionEvent evt) {// GEN-FIRST:event_jRadioButton5ActionPerformed

		disableLesson();
		disableDeadline();

	}// GEN-LAST:event_jRadioButton5ActionPerformed

	private void jMenu17StateChanged(javax.swing.event.ChangeEvent evt) {

		jMenu17.removeAll();

	}

	private void jMenu18StateChanged(javax.swing.event.ChangeEvent evt) {

		jMenu18.removeAll();

	}

	private void jMenu18MouseEntered(java.awt.event.MouseEvent evt) {

		try {

			Vector<objects.Student> studentVector = db.stud.getAllStudents();
			Vector<objects.Teacher> teacherVector = db.teach.getAllTeachers();
			Vector<objects.Contact> contactVector = db.contact.getAllContacts();

			for (int i = 0; i < studentVector.size(); i++) {

				JMenuItem item = new JMenuItem();
				item.setText(studentVector.get(i).getEmail());
				item.addActionListener(new JMenu18ActionListener());
				jMenu18.add(item);

			}

			if (!studentVector.isEmpty()) {

				jMenu18.addSeparator();

			}

			for (int i = 0; i < teacherVector.size(); i++) {

				JMenuItem item = new JMenuItem();
				item.setText(teacherVector.get(i).getEmail());
				item.addActionListener(new JMenu18ActionListener());
				jMenu18.add(item);

			}

			if (!teacherVector.isEmpty()) {

				jMenu18.addSeparator();

			}

			for (int i = 0; i < contactVector.size(); i++) {

				JMenuItem item = new JMenuItem();
				item.setText(contactVector.get(i).getEmail());
				item.addActionListener(new JMenu18ActionListener());
				jMenu18.add(item);

			}

		} catch (Exception e) {

			jLabel66.setText(e.getMessage());
			eventErrorVenster.pack();
			eventErrorVenster.setLocationRelativeTo(null);
			eventErrorVenster.setVisible(true);

		}

	}

	private void jMenu15MouseEntered(java.awt.event.MouseEvent evt) {// GEN-FIRST:event_jMenu15MouseEntered

		try {

			Vector<objects.Lesson> lessonVector = db.lesson.getAllLessons();
			Vector<objects.Event> eventVector = db.event.getAllEvents(true);
			Vector<objects.Event> deadlineVector = db.event.getAllDeadlines();

			for (int i = 0; i < lessonVector.size(); i++) {

				JMenuItem item = new JMenuItem();
				item.setText(lessonVector.get(i).getCourseName());
				item.addActionListener(new JMenu15ActionListener());
				jMenu15.add(item);

			}
			if (!lessonVector.isEmpty()) {

				jMenu15.addSeparator();

			}
			for (int i = 0; i < deadlineVector.size(); i++) {

				JMenuItem item = new JMenuItem();
				item.setText(deadlineVector.get(i).getSummary());
				item.addActionListener(new JMenu15ActionListener());
				jMenu15.add(item);

			}
			if (!deadlineVector.isEmpty()) {

				jMenu15.addSeparator();

			}
			for (int i = 0; i < eventVector.size(); i++) {

				JMenuItem item = new JMenuItem();
				item.setText(eventVector.get(i).getSummary());
				item.addActionListener(new JMenu15ActionListener());
				jMenu15.add(item);

			}
		} catch (Exception e) {

			jLabel66.setText(e.getMessage());
			eventErrorVenster.pack();
			eventErrorVenster.setLocationRelativeTo(null);
			eventErrorVenster.setVisible(true);

		}

	}// GEN-LAST:event_jMenu15MouseEntered

	private void jMenu15StateChanged(javax.swing.event.ChangeEvent evt) {// GEN-FIRST:event_jMenu15StateChanged

		jMenu15.removeAll();

	}// GEN-LAST:event_jMenu15StateChanged

	private void jMenu16MouseEntered(java.awt.event.MouseEvent evt) {// GEN-FIRST:event_jMenu16MouseEntered

		try {

			Vector<objects.Exam> examVector = db.exam.getAllExams();
			Vector<objects.Event> eventVector = db.event.getAllEvents(true);
			Vector<objects.Event> deadlineVector = db.event.getAllDeadlines();

			for (int i = 0; i < examVector.size(); i++) {

				JMenuItem item = new JMenuItem();
				item.addActionListener(new JMenu16ActionListener());
				item.setText(examVector.get(i).getName());
				jMenu16.add(item);

			}
			if (!examVector.isEmpty()) {

				jMenu16.addSeparator();

			}
			for (int i = 0; i < deadlineVector.size(); i++) {

				JMenuItem item = new JMenuItem();
				item.addActionListener(new JMenu16ActionListener());
				item.setText(deadlineVector.get(i).getSummary());
				jMenu16.add(item);

			}
			if (!examVector.isEmpty()) {

				jMenu16.addSeparator();

			}
			for (int i = 0; i < eventVector.size(); i++) {

				JMenuItem item = new JMenuItem();
				item.addActionListener(new JMenu16ActionListener());
				item.setText(eventVector.get(i).getSummary());
				jMenu16.add(item);

			}
		} catch (Exception e) {

			jLabel66.setText(e.getMessage());
			eventErrorVenster.pack();
			eventErrorVenster.setLocationRelativeTo(null);
			eventErrorVenster.setVisible(true);

		}

	}// GEN-LAST:event_jMenu16MouseEntered

	private void jMenu16StateChanged(javax.swing.event.ChangeEvent evt) {// GEN-FIRST:event_jMenu16StateChanged

		jMenu16.removeAll();

	}// GEN-LAST:event_jMenu16StateChanged

	private void jListTabelsValueChanged(
			javax.swing.event.ListSelectionEvent evt) {// GEN-FIRST:event_jListTabelsValueChanged
		int index = jListTabels.getSelectedIndex();
		switch (index) {
		case 0:
			jListColumns.setModel(makeCourseListModel());
			break;
		case 1:
			jListColumns.setModel(makeFileListModel());
			break;
		// TODO add more
		default:
			jLabel66.setText("Error");
		eventErrorVenster.pack();
		eventErrorVenster.setLocationRelativeTo(null);
		eventErrorVenster.setVisible(true);
			break;
		}
	}// GEN-LAST:event_jListTabelsValueChanged

	private void jListColumnsValueChanged(
			javax.swing.event.ListSelectionEvent evt) {// GEN-FIRST:event_jListColumnsValueChanged
		jTextFieldColumn.setText(jListColumns.getSelectedValue().toString());
		jTextFieldTable.setText(jListTabels.getSelectedValue().toString());
		buttonGroupConstraint.clearSelection();
		jRadioButtonNone.setSelected(true);
		jTextFieldConstraintValue.setText(null);

	}// GEN-LAST:event_jListColumnsValueChanged

	public ListModel makeCourseListModel() {
		DefaultListModel lst = new DefaultListModel();
		lst.add(0, "Name");
		lst.add(1, "Description");
		lst.add(2, "BeginYear");
		lst.add(3, "Semester");
		lst.add(4, "MoreInformation");
		return lst;
	}

	private void jButton26ActionPerformed(java.awt.event.ActionEvent evt) {// GEN-FIRST:event_jButton26ActionPerformed

		eventErrorVenster.setVisible(false);

	}// GEN-LAST:event_jButton26ActionPerformed

	private void jButton27ActionPerformed(java.awt.event.ActionEvent evt) {// GEN-FIRST:event_jButton27ActionPerformed

	}// GEN-LAST:event_jButton27ActionPerformed

	private void jMenuItem2ActionPerformed(java.awt.event.ActionEvent evt) {// GEN-FIRST:event_jMenuItem2ActionPerformed
		try {

			UIManager.setLookAndFeel("javax.swing.plaf.metal.MetalLookAndFeel");

		} catch (Exception e) {

			jLabel66.setText(e.getMessage());
			eventErrorVenster.pack();
			eventErrorVenster.setLocationRelativeTo(null);
			eventErrorVenster.setVisible(true);

		}
		repaint();

	}// GEN-LAST:event_jMenuItem2ActionPerformed

	private void jMenuItem4ActionPerformed(java.awt.event.ActionEvent evt) {// GEN-FIRST:event_jMenuItem4ActionPerformed

		try {

			UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
			repaint();

		} catch (Exception e) {

			jLabel66.setText(e.getMessage());
			eventErrorVenster.pack();
			eventErrorVenster.setLocationRelativeTo(null);
			eventErrorVenster.setVisible(true);

		}

	}// GEN-LAST:event_jMenuItem4ActionPerformed

	private void jMenuItem7ActionPerformed(java.awt.event.ActionEvent evt) {// GEN-FIRST:event_jMenuItem7ActionPerformed

		try {

			UIManager
					.setLookAndFeel("com.sun.java.swing.plaf.motif.MotifLookAndFeel");
			repaint();

		} catch (Exception e) {

			jLabel66.setText(e.getMessage());
			eventErrorVenster.pack();
			eventErrorVenster.setLocationRelativeTo(null);
			eventErrorVenster.setVisible(true);

		}

	}// GEN-LAST:event_jMenuItem7ActionPerformed

	private void jButton6ActionPerformed(java.awt.event.ActionEvent evt) {// GEN-FIRST:event_jButton6ActionPerformed

		vakVenster.setVisible(false);
		this.toFront();
		this.setEnabled(true);

	}// GEN-LAST:event_jButton6ActionPerformed

	private void jButton11ActionPerformed(java.awt.event.ActionEvent evt) {// GEN-FIRST:event_jButton11ActionPerformed

		taskVenster.setVisible(false);
		this.setEnabled(true);
		this.toFront();

	}// GEN-LAST:event_jButton11ActionPerformed

	private void jButton24ActionPerformed(java.awt.event.ActionEvent evt) {// GEN-FIRST:event_jButton24ActionPerformed

		gebeurtenisVenster.setVisible(false);
		this.setEnabled(true);
		this.toFront();

	}// GEN-LAST:event_jButton24ActionPerformed

	public ListModel makeFileListModel() {
		DefaultListModel lst = new DefaultListModel();
		lst.add(0, "PathName");
		lst.add(1, "MoreInformation");
		return lst;
	}

	public ListModel makeTaskListModel() {
		DefaultListModel lst = new DefaultListModel();
		lst.add(0, "Name");
		lst.add(1, "Description");
		lst.add(2, "Done");
		lst.add(3, "Grades");
		lst.add(4, "MoreInformation");
		return lst;
	}

	class JMenu19ActionListener implements ActionListener {
		// Verwijder gebeurtenis
		@Override
		public void actionPerformed(ActionEvent evt) {
			try {
				JMenuItem item = new JMenuItem();
				item = (JMenuItem) evt.getSource();

				

			} catch (Exception e) {

				jLabel66.setText(e.getMessage());
				eventErrorVenster.pack();
				eventErrorVenster.setLocationRelativeTo(null);
				eventErrorVenster.setVisible(true);

			}
		}
	}

	private void jButton31ActionPerformed(java.awt.event.ActionEvent evt) {
		try {
			export();
		} catch (Exception e) {
			jLabel66.setText(e.getMessage());
			e.printStackTrace();
			eventErrorVenster.pack();
			eventErrorVenster.setLocationRelativeTo(null);
			eventErrorVenster.setVisible(true);
		}
		exportVenster.dispose();
	}

	private void jButton32ActionPerformed(java.awt.event.ActionEvent evt) {
		exportVenster.dispose();
	}

	private void jButton33ActionPerformed(java.awt.event.ActionEvent evt) {
		final ExportChooser e = new ExportChooser("Vakken");
		e.setVisible(true);
		try {
			Vector<objects.Course> temp = db.course.getAllCourses();
			Vector<String> temp2 = new Vector<String> ();
			for (int i = 0; i < temp.size(); i++) {
				temp2.add(temp.elementAt(i).getName());
			}
			e.unusedList.setListData(temp2);
			e.okButton.addActionListener(new ActionListener() {
				@Override
				public void actionPerformed(ActionEvent evt) {
						try {
					    	ListModel lst = e.usedList.getModel();
					    	for (int i = 0; i < lst.getSize(); i++) {
						    	objectVector.add(db.course.getCourse(((String) lst.getElementAt(i))));
							}
						} catch (Exception ex) {
							jLabel66.setText(ex.getMessage());
							eventErrorVenster.pack();
							eventErrorVenster.setLocationRelativeTo(null);
							eventErrorVenster.setVisible(true);
						}
						e.dispose();
				}	
			});
		} catch (Exception ex) {
			jLabel66.setText(ex.getMessage());
			eventErrorVenster.pack();
			eventErrorVenster.setLocationRelativeTo(null);
			eventErrorVenster.setVisible(true);
		}
		

	}

	private void jButton34ActionPerformed(java.awt.event.ActionEvent evt) {
		final ExportChooser e = new ExportChooser("Contacten");
		e.setVisible(true);
		try {
			Vector<objects.Contact> temp = db.contact.getAllContacts();
			Vector<String> temp2 = new Vector<String> ();
			for (int i = 0; i < temp.size(); i++) {
				temp2.add(temp.elementAt(i).getEmail());
			}
			e.unusedList.setListData(temp2);
			e.okButton.addActionListener(new ActionListener() {
				@Override
				public void actionPerformed(ActionEvent evt) {
						try {
					    	ListModel lst = e.usedList.getModel();
					    	for (int i = 0; i < lst.getSize(); i++) {
						    	objectVector.add(db.contact.getContact((String) lst.getElementAt(i)));
							}
						} catch (Exception ex) {
							jLabel66.setText(ex.getMessage());
							eventErrorVenster.pack();
							eventErrorVenster.setLocationRelativeTo(null);
							eventErrorVenster.setVisible(true);
						}
						e.dispose();
				}	
			});
		} catch (Exception ex) {
			jLabel66.setText(ex.getMessage());
			eventErrorVenster.pack();
			eventErrorVenster.setLocationRelativeTo(null);
			eventErrorVenster.setVisible(true);
		}
	}

	private void jButton35ActionPerformed(java.awt.event.ActionEvent evt) {
		final ExportChooser e = new ExportChooser("Gebeurtenis");
		e.setVisible(true);
		try {
			Vector<objects.Event> temp = db.event.getAllEvents(false);
			Vector<String> temp2 = new Vector<String> ();
			for (int i = 0; i < temp.size(); i++) {
				String date = DBDateTime.getParsedString(temp.elementAt(i).getStart());
				temp2.add(date + ": " + temp.elementAt(i).getSummary());
			}
			e.unusedList.setListData(temp2);
			e.okButton.addActionListener(new ActionListener() {
				@Override
				public void actionPerformed(ActionEvent evt) {
						try {
					    	ListModel lst = e.usedList.getModel();
					    	for (int i = 0; i < lst.getSize(); i++) {
					    		String s = (String) lst.getElementAt(i);
					    		String date2 = DBDateTime.decodeParsedString(s);
					    		String summary = s.substring(23);
					    		objectVector.add(db.event.getEvent(date2, summary));
							}
						} catch (Exception ex) {
							jLabel66.setText(ex.getMessage());
							eventErrorVenster.pack();
							eventErrorVenster.setLocationRelativeTo(null);
							eventErrorVenster.setVisible(true);
						}
						e.dispose();
				}	
			});
		} catch (Exception ex) {
			jLabel66.setText(ex.getMessage());
			eventErrorVenster.pack();
			eventErrorVenster.setLocationRelativeTo(null);
			eventErrorVenster.setVisible(true);
		}

	}

	private void jButton36ActionPerformed(java.awt.event.ActionEvent evt) {
		final ExportChooser e = new ExportChooser("Taken");
		e.setVisible(true);
		try {
			Vector<objects.Task> temp = db.task.getAllTasks();
			Vector<String> temp2 = new Vector<String> ();
			for (int i = 0; i < temp.size(); i++) {
				temp2.add(temp.elementAt(i).getName());
			}
			e.unusedList.setListData(temp2);
			e.okButton.addActionListener(new ActionListener() {
				@Override
				public void actionPerformed(ActionEvent evt) {
						try {
					    	ListModel lst = e.usedList.getModel();
					    	for (int i = 0; i < lst.getSize(); i++) {
						    	objectVector.add(db.task.getTask((String) lst.getElementAt(i)));
							}
						} catch (Exception ex) {
							jLabel66.setText(ex.getMessage());
							eventErrorVenster.pack();
							eventErrorVenster.setLocationRelativeTo(null);
							eventErrorVenster.setVisible(true);
						}
						e.dispose();
				}	
			});
		} catch (Exception ex) {
			jLabel66.setText(ex.getMessage());
			eventErrorVenster.pack();
			eventErrorVenster.setLocationRelativeTo(null);
			eventErrorVenster.setVisible(true);
		}
	}

	private void jButton37ActionPerformed(java.awt.event.ActionEvent evt) {
		final ExportChooser e = new ExportChooser("Leerkrachten");
		e.setVisible(true);
		try {
			Vector<objects.Teacher> temp = db.teach.getAllTeachers();
			Vector<String> temp2 = new Vector<String> ();
			for (int i = 0; i < temp.size(); i++) {
				temp2.add(temp.elementAt(i).getEmail());
			}
			e.unusedList.setListData(temp2);
			e.okButton.addActionListener(new ActionListener() {
				@Override
				public void actionPerformed(ActionEvent evt) {
						try {
					    	ListModel lst = e.usedList.getModel();
					    	for (int i = 0; i < lst.getSize(); i++) {
						    	objectVector.add(db.teach.getTeacher((String) lst.getElementAt(i)));
							}
						} catch (Exception ex) {
							jLabel66.setText(ex.getMessage());
							eventErrorVenster.pack();
							eventErrorVenster.setLocationRelativeTo(null);
							eventErrorVenster.setVisible(true);
						}
						e.dispose();
				}	
			});
		} catch (Exception ex) {
			jLabel66.setText(ex.getMessage());
			eventErrorVenster.pack();
			eventErrorVenster.setLocationRelativeTo(null);
			eventErrorVenster.setVisible(true);
		}
	}

	private void jButton38ActionPerformed(java.awt.event.ActionEvent evt) {
		final ExportChooser e = new ExportChooser("Student");
		e.setVisible(true);
		try {
			Vector<objects.Student> temp = db.stud.getAllStudents();
			Vector<String> temp2 = new Vector<String> ();
			for (int i = 0; i < temp.size(); i++) {
				temp2.add(temp.elementAt(i).getEmail());
			}
			e.unusedList.setListData(temp2);
			e.okButton.addActionListener(new ActionListener() {
				@Override
				public void actionPerformed(ActionEvent evt) {
						try {
					    	ListModel lst = e.usedList.getModel();
					    	for (int i = 0; i < lst.getSize(); i++) {
						    	objectVector.add(db.stud.getStudent((String) lst.getElementAt(i)));
							}
						} catch (Exception ex) {
							jLabel66.setText(ex.getMessage());
							eventErrorVenster.pack();
							eventErrorVenster.setLocationRelativeTo(null);
							eventErrorVenster.setVisible(true);
						}
						e.dispose();
				}	
			});
		} catch (Exception ex) {
			jLabel66.setText(ex.getMessage());
			eventErrorVenster.pack();
			eventErrorVenster.setLocationRelativeTo(null);
			eventErrorVenster.setVisible(true);
		}
	}

	private void jButton39ActionPerformed(java.awt.event.ActionEvent evt) {
		final ExportChooser e = new ExportChooser("Examen");
		e.setVisible(true);
		try {
			Vector<objects.Exam> temp = db.exam.getAllExams();
			Vector<String> temp2 = new Vector<String> ();
			for (int i = 0; i < temp.size(); i++) {
				temp2.add(temp.elementAt(i).getName());
			}
			e.unusedList.setListData(temp2);
			e.okButton.addActionListener(new ActionListener() {
				@Override
				public void actionPerformed(ActionEvent evt) {
						try {
					    	ListModel lst = e.usedList.getModel();
					    	for (int i = 0; i < lst.getSize(); i++) {
						    	objectVector.add(db.exam.getExam((String) lst.getElementAt(i)));
							}
						} catch (Exception ex) {
							jLabel66.setText(ex.getMessage());
							eventErrorVenster.pack();
							eventErrorVenster.setLocationRelativeTo(null);
							eventErrorVenster.setVisible(true);
						}
						e.dispose();
				}	
			});
		} catch (Exception ex) {
			jLabel66.setText(ex.getMessage());
			eventErrorVenster.pack();
			eventErrorVenster.setLocationRelativeTo(null);
			eventErrorVenster.setVisible(true);
		}
	}

	private void jButton40ActionPerformed(java.awt.event.ActionEvent evt) {
		final ExportChooser e = new ExportChooser("Projecten");
		e.setVisible(true);
		try {
			Vector<objects.Project> temp = db.proj.getAllProjects();
			Vector<String> temp2 = new Vector<String> ();
			for (int i = 0; i < temp.size(); i++) {
				temp2.add(temp.elementAt(i).getName());
			}
			e.unusedList.setListData(temp2);
			e.okButton.addActionListener(new ActionListener() {
				@Override
				public void actionPerformed(ActionEvent evt) {
						try {
					    	ListModel lst = e.usedList.getModel();
					    	for (int i = 0; i < lst.getSize(); i++) {
						    	objectVector.add(db.proj.getTask((String) lst.getElementAt(i)));
							}
						} catch (Exception ex) {
							jLabel66.setText(ex.getMessage());
							eventErrorVenster.pack();
							eventErrorVenster.setLocationRelativeTo(null);
							eventErrorVenster.setVisible(true);
						}
						e.dispose();
				}	
			});
		} catch (Exception ex) {
			jLabel66.setText(ex.getMessage());
			eventErrorVenster.pack();
			eventErrorVenster.setLocationRelativeTo(null);
			eventErrorVenster.setVisible(true);
		}
	}

	private void jButton41ActionPerformed(java.awt.event.ActionEvent evt) {
		final ExportChooser e = new ExportChooser("Lessen");
		e.setVisible(true);
		try {
			Vector<objects.Lesson> temp = db.lesson.getAllLessons();
			Vector<String> temp2 = new Vector<String> ();
			for (int i = 0; i < temp.size(); i++) {
				String date = DBDateTime.getParsedString(temp.elementAt(i).getStart());
				temp2.add(date + ": " + temp.elementAt(i).getSummary());
			}
			e.unusedList.setListData(temp2);
			e.okButton.addActionListener(new ActionListener() {
				@Override
				public void actionPerformed(ActionEvent evt) {
						try {
					    	ListModel lst = e.usedList.getModel();
					    	for (int i = 0; i < lst.getSize(); i++) {
					    		String s = (String) lst.getElementAt(i);
					    		String date2 = DBDateTime.decodeParsedString(s);
					    		String summary = s.substring(23);
					    		objectVector.add(db.event.getEvent(date2, summary));
							}
						} catch (Exception ex) {
							jLabel66.setText(ex.getMessage());
							eventErrorVenster.pack();
							eventErrorVenster.setLocationRelativeTo(null);
							eventErrorVenster.setVisible(true);
						}
						e.dispose();
				}	
			});
		} catch (Exception ex) {
			jLabel66.setText(ex.getMessage());
			eventErrorVenster.pack();
			eventErrorVenster.setLocationRelativeTo(null);
			eventErrorVenster.setVisible(true);
		}
	}
	
	private void jButton18ActionPerformed(java.awt.event.ActionEvent evt) {
		int index = jList6.getSelectedIndex();
		if (index == -1) {
			jLabel66.setText("U moet een persoon selecteren");
			eventErrorVenster.pack();
			eventErrorVenster.setLocationRelativeTo(null);
			eventErrorVenster.setVisible(true);
		} else {
			contactVenster.setVisible(true);
			contactVenster.setTitle("Profiel Groepslid");
			contactVenster.setBounds(100, 100, 850, 500);
			jComboBox3.setEditable(false);
			jTextField6.setEditable(false);
			jTextField18.setEditable(false);
			jTextField18.setEditable(false);
			jTextField19.setEditable(false);
			jTextField20.setEditable(false);
			jTextField23.setEditable(false);
			jTextField21.setEditable(false);
			jButton19.setVisible(false);
			jButton20.setVisible(false);
			jComboBox4.setEditable(false);
			jButton9.setVisible(false);
			jButton10.setText("Sluiten");
			try {
				objects.Student student = db.stud.getStudent((String) jList6.getSelectedValue());
				gEmail = student.getEmail();
				jComboBox3.setSelectedItem("Student");
				jComboBox3.setEnabled(false);
				gOldType = "Student";
				jTextField6.setText(student.getName());
				jTextField18.setText(student.getForename());
				jTextField19.setText(student.getEmail());
				jTextField20.setText(student.getMoreInformation());
				jTextField23.setText(student.getPhoneNumber());
				jTextField21.setText(student.getAlternativeEmail());


				Vector<objects.Project> v = db.rPS.getProjects(student.getEmail());
				Vector<String> v1 = new Vector<String>();
				for (int i = 0; i < v.size(); i++) {
					v1.add(v.elementAt(i).getName());
				}
				jList9.setListData(v1);
				jList10.setVisible(false);
			} catch (Exception e) {
				jLabel66.setText(e.getMessage());
				eventErrorVenster.pack();
				eventErrorVenster.setLocationRelativeTo(null);
				eventErrorVenster.setVisible(true);
			}
		}
    }
	
	/**
	 * @param args
	 *            the command line arguments
	 */
	public static void main(String args[]) throws Exception {
		java.awt.EventQueue.invokeLater(new Runnable() {
			@Override
			public void run() {
				try {

					Main.initConnection("test.db3", "", "");
					NewJFrame myFrame = new NewJFrame();
					myFrame.setVisible(true);
				} catch (ClassNotFoundException ex) {
					Logger.getLogger(NewJFrame.class.getName()).log(
							Level.SEVERE, null, ex);
				} catch (InstantiationException ex) {
					Logger.getLogger(NewJFrame.class.getName()).log(
							Level.SEVERE, null, ex);
				} catch (IllegalAccessException ex) {
					Logger.getLogger(NewJFrame.class.getName()).log(
							Level.SEVERE, null, ex);
				} catch (UnsupportedLookAndFeelException ex) {
					Logger.getLogger(NewJFrame.class.getName()).log(
							Level.SEVERE, null, ex);
				} catch (Exception ex) {
					Logger.getLogger(NewJFrame.class.getName()).log(
							Level.SEVERE, null, ex);
				}
			}
		});

	}

	// Variables declaration - do not modify//GEN-BEGIN:variables
	public static javax.swing.JPanel AchtergrondPanel;
	public static javax.swing.JPanel DashboardPanel;
	public static javax.swing.JPanel LinksbovenPanel;
	public static javax.swing.JFrame aboutVenster;
	public static javax.swing.JFrame bestandsVenster;
	public static java.awt.Button button3;
	public static javax.swing.ButtonGroup buttonGroup1;
	public static javax.swing.ButtonGroup buttonGroup2;
	public static javax.swing.ButtonGroup buttonGroup3;
	public static javax.swing.ButtonGroup buttonGroupConstraint;
	public static javax.swing.JFrame contactVenster;
	public static javax.swing.JToggleButton contactenButton;
	public static javax.swing.JPanel contactenPanel;
	public static javax.swing.JDialog eventErrorVenster;
	public static javax.swing.JFrame exportVenster;
	public static javax.swing.JPanel fooPanel;
	public static javax.swing.JFrame gebeurtenisVenster;
	public static javax.swing.JToggleButton iCalenderButton;
	public static javax.swing.JPanel iCalenderPanel;
	public static javax.swing.JFrame importVenster;
	public static javax.swing.JFrame inlogVenster;
	public static javax.swing.JButton jButton1;
	public static javax.swing.JButton jButton10;
	public static javax.swing.JButton jButton11;
	public static javax.swing.JButton jButton12;
	public static javax.swing.JButton jButton13;
	public static javax.swing.JButton jButton14;
	public static javax.swing.JButton jButton15;
	public static javax.swing.JButton jButton16;
	public static javax.swing.JButton jButton17;
	public static javax.swing.JButton jButton18;
	public static javax.swing.JButton jButton19;
	public static javax.swing.JButton jButton2;
	public static javax.swing.JButton jButton20;
	public static javax.swing.JButton jButton21;
	public static javax.swing.JButton jButton22;
	public static javax.swing.JButton jButton23;
	public static javax.swing.JButton jButton24;
	public static javax.swing.JButton jButton25;
	public static javax.swing.JButton jButton26;
	public static javax.swing.JButton jButton27;
	public static javax.swing.JButton jButton28;
	public static javax.swing.JButton jButton29;
	public static javax.swing.JButton jButton3;
	public static javax.swing.JButton jButton30;
	public static javax.swing.JButton jButton31;
	public static javax.swing.JButton jButton32;
	public static javax.swing.JButton jButton33;
	public static javax.swing.JButton jButton34;
	public static javax.swing.JButton jButton35;
	public static javax.swing.JButton jButton36;
	public static javax.swing.JButton jButton37;
	public static javax.swing.JButton jButton38;
	public static javax.swing.JButton jButton39;
	public static javax.swing.JButton jButton40;
	public static javax.swing.JButton jButton41;
	public static javax.swing.JButton jButton4;
	public static javax.swing.JButton jButton5;
	public static javax.swing.JButton jButton6;
	public static javax.swing.JButton jButton7;
	public static javax.swing.JButton jButton8;
	public static javax.swing.JButton jButton9;
	public static javax.swing.JButton jButtonAdd;
	public static javax.swing.JButton jButtonModify;
	public static javax.swing.JButton jButtonRemove;
	public static javax.swing.JCheckBox jCheckBox1;
	public static javax.swing.JCheckBox jCheckBox2;
	public static javax.swing.JComboBox jComboBox1;
	public static javax.swing.JComboBox jComboBox10;
	public static javax.swing.JComboBox jComboBox11;
	public static javax.swing.JComboBox jComboBox12;
	public static javax.swing.JComboBox jComboBox13;
	public static javax.swing.JComboBox jComboBox14;
	public static javax.swing.JComboBox jComboBox15;
	public static javax.swing.JComboBox jComboBox16;
	public static javax.swing.JComboBox jComboBox17;
	public static javax.swing.JComboBox jComboBox18;
	public static javax.swing.JComboBox jComboBox19;
	public static javax.swing.JComboBox jComboBox2;
	public static javax.swing.JComboBox jComboBox20;
	public static javax.swing.JComboBox jComboBox21;
	public static javax.swing.JComboBox jComboBox22;
	public static javax.swing.JComboBox jComboBox23;
	public static javax.swing.JComboBox jComboBox24;
	public static javax.swing.JComboBox jComboBox25;
	public static javax.swing.JComboBox jComboBox26;
	public static javax.swing.JComboBox jComboBox27;
	public static javax.swing.JComboBox jComboBox3;
	public static javax.swing.JComboBox jComboBox37;
	public static javax.swing.JComboBox jComboBox4;
	public static javax.swing.JComboBox jComboBox5;
	public static javax.swing.JComboBox jComboBox6;
	public static javax.swing.JComboBox jComboBox7;
	public static javax.swing.JComboBox jComboBox8;
	public static javax.swing.JComboBox jComboBox9;
	public static javax.swing.JFileChooser jFileChooser1;
	public static javax.swing.JFileChooser jFileChooser2;
	public static javax.swing.JFileChooser jFileChooser3;
	public static javax.swing.JLabel jLabel1;
	public static javax.swing.JLabel jLabel10;
	public static javax.swing.JLabel jLabel11;
	public static javax.swing.JLabel jLabel12;
	public static javax.swing.JLabel jLabel13;
	public static javax.swing.JLabel jLabel14;
	public static javax.swing.JLabel jLabel15;
	public static javax.swing.JLabel jLabel16;
	public static javax.swing.JLabel jLabel17;
	public static javax.swing.JLabel jLabel18;
	public static javax.swing.JLabel jLabel19;
	public static javax.swing.JLabel jLabel2;
	public static javax.swing.JLabel jLabel20;
	public static javax.swing.JLabel jLabel21;
	public static javax.swing.JLabel jLabel22;
	public static javax.swing.JLabel jLabel23;
	public static javax.swing.JLabel jLabel24;
	public static javax.swing.JLabel jLabel25;
	public static javax.swing.JLabel jLabel26;
	public static javax.swing.JLabel jLabel27;
	public static javax.swing.JLabel jLabel28;
	public static javax.swing.JLabel jLabel29;
	public static javax.swing.JLabel jLabel3;
	public static javax.swing.JLabel jLabel30;
	public static javax.swing.JLabel jLabel31;
	public static javax.swing.JLabel jLabel32;
	public static javax.swing.JLabel jLabel33;
	public static javax.swing.JLabel jLabel34;
	public static javax.swing.JLabel jLabel35;
	public static javax.swing.JLabel jLabel36;
	public static javax.swing.JLabel jLabel37;
	public static javax.swing.JLabel jLabel38;
	public static javax.swing.JLabel jLabel39;
	public static javax.swing.JLabel jLabel4;
	public static javax.swing.JLabel jLabel40;
	public static javax.swing.JLabel jLabel41;
	public static javax.swing.JLabel jLabel42;
	public static javax.swing.JLabel jLabel43;
	public static javax.swing.JLabel jLabel44;
	public static javax.swing.JLabel jLabel45;
	public static javax.swing.JLabel jLabel46;
	public static javax.swing.JLabel jLabel47;
	public static javax.swing.JLabel jLabel48;
	public static javax.swing.JLabel jLabel49;
	public static javax.swing.JLabel jLabel5;
	public static javax.swing.JLabel jLabel50;
	public static javax.swing.JLabel jLabel51;
	public static javax.swing.JLabel jLabel52;
	public static javax.swing.JLabel jLabel53;
	public static javax.swing.JLabel jLabel54;
	public static javax.swing.JLabel jLabel55;
	public static javax.swing.JLabel jLabel56;
	public static javax.swing.JLabel jLabel57;
	public static javax.swing.JLabel jLabel58;
	public static javax.swing.JLabel jLabel59;
	public static javax.swing.JLabel jLabel6;
	public static javax.swing.JLabel jLabel60;
	public static javax.swing.JLabel jLabel61;
	public static javax.swing.JLabel jLabel62;
	public static javax.swing.JLabel jLabel63;
	public static javax.swing.JLabel jLabel64;
	public static javax.swing.JLabel jLabel65;
	public static javax.swing.JLabel jLabel66;
	public static javax.swing.JLabel jLabel67;
	public static javax.swing.JLabel jLabel68;
	public static javax.swing.JLabel jLabel69;
	public static javax.swing.JLabel jLabel7;
	public static javax.swing.JLabel jLabel71;
	public static javax.swing.JLabel jLabel72;
	public static javax.swing.JLabel jLabel8;
	public static javax.swing.JLabel jLabel9;
	public static javax.swing.JList jList1;
	public static javax.swing.JList jList10;
	public static javax.swing.JList jList11;
	public static javax.swing.JList jList12;
	public static javax.swing.JList jList2;
	public static javax.swing.JList jList3;
	public static javax.swing.JList jList4;
	public static javax.swing.JList jList5;
	public static javax.swing.JList jList6;
	public static javax.swing.JList jList7;
	public static javax.swing.JList jList8;
	public static javax.swing.JList jList9;
	public static javax.swing.JList jListColumns;
	public static javax.swing.JList jListTabels;
	public static javax.swing.JMenu jMenu1;
	public static javax.swing.JMenu jMenu10;
	public static javax.swing.JMenu jMenu11;
	public static javax.swing.JMenu jMenu12;
	public static javax.swing.JMenu jMenu13;
	public static javax.swing.JMenu jMenu14;
	public static javax.swing.JMenu jMenu15;
	public static javax.swing.JMenu jMenu16;
	public static javax.swing.JMenu jMenu17;
	public static javax.swing.JMenu jMenu18;
	public static javax.swing.JMenu jMenu19;
	public static javax.swing.JMenu jMenu2;
	public static javax.swing.JMenu jMenu3;
	public static javax.swing.JMenu jMenu4;
	public static javax.swing.JMenu jMenu5;
	public static javax.swing.JMenu jMenu6;
	public static javax.swing.JMenu jMenu7;
	public static javax.swing.JMenu jMenu8;
	public static javax.swing.JMenu jMenu9;
	public static javax.swing.JMenuBar jMenuBar1;
	public static javax.swing.JMenuItem jMenuItem1;
	public static javax.swing.JMenuItem jMenuItem14;
	public static javax.swing.JMenuItem jMenuItem2;
	public static javax.swing.JMenuItem jMenuItem21;
	public static javax.swing.JMenuItem jMenuItem26;
	public static javax.swing.JMenuItem jMenuItem27;
	public static javax.swing.JMenuItem jMenuItem3;
	public static javax.swing.JMenuItem jMenuItem4;
	public static javax.swing.JMenuItem jMenuItem5;
	public static javax.swing.JMenuItem jMenuItem6;
	public static javax.swing.JMenuItem jMenuItem7;
	public static javax.swing.JPanel jPanel1;
	public static javax.swing.JPanel jPanel10;
	public static javax.swing.JPanel jPanel11;
	public static javax.swing.JPanel jPanel12;
	public static javax.swing.JPanel jPanel13;
	public static javax.swing.JPanel jPanel14;
	public static javax.swing.JPanel jPanel15;
	public static javax.swing.JPanel jPanel16;
	public static javax.swing.JPanel jPanel17;
	public static javax.swing.JPanel jPanel18;
	public static javax.swing.JPanel jPanel19;
	public static javax.swing.JPanel jPanel2;
	public static javax.swing.JPanel jPanel3;
	public static javax.swing.JPanel jPanel4;
	public static javax.swing.JPanel jPanel5;
	public static javax.swing.JPanel jPanel6;
	public static javax.swing.JPanel jPanel7;
	public static javax.swing.JPanel jPanel8;
	public static javax.swing.JPanel jPanel9;
	public static javax.swing.JPasswordField jPasswordField1;
	public static javax.swing.JRadioButton jRadioButton1;
	public static javax.swing.JRadioButton jRadioButton10;
	public static javax.swing.JRadioButton jRadioButton2;
	public static javax.swing.JRadioButton jRadioButton3;
	public static javax.swing.JRadioButton jRadioButton4;
	public static javax.swing.JRadioButton jRadioButton5;
	public static javax.swing.JRadioButton jRadioButton6;
	public static javax.swing.JRadioButton jRadioButton7;
	public static javax.swing.JRadioButton jRadioButton8;
	public static javax.swing.JRadioButton jRadioButton9;
	public static javax.swing.JRadioButton jRadioButtonBigger;
	public static javax.swing.JRadioButton jRadioButtonBiggerEqual;
	public static javax.swing.JRadioButton jRadioButtonEqual;
	public static javax.swing.JRadioButton jRadioButtonNone;
	public static javax.swing.JRadioButton jRadioButtonSmaller;
	public static javax.swing.JRadioButton jRadioButtonSmallerEqual;
	public static javax.swing.JScrollPane jScrollPane1;
	public static javax.swing.JScrollPane jScrollPane10;
	public static javax.swing.JScrollPane jScrollPane11;
	public static javax.swing.JScrollPane jScrollPane12;
	public static javax.swing.JScrollPane jScrollPane13;
	public static javax.swing.JScrollPane jScrollPane14;
	public static javax.swing.JScrollPane jScrollPane15;
	public static javax.swing.JScrollPane jScrollPane16;
	public static javax.swing.JScrollPane jScrollPane17;
	public static javax.swing.JScrollPane jScrollPane18;
	public static javax.swing.JScrollPane jScrollPane19;
	public static javax.swing.JScrollPane jScrollPane2;
	public static javax.swing.JScrollPane jScrollPane20;
	public static javax.swing.JScrollPane jScrollPane21;
	public static javax.swing.JScrollPane jScrollPane22;
	public static javax.swing.JScrollPane jScrollPane23;
	public static javax.swing.JScrollPane jScrollPane24;
	public static javax.swing.JScrollPane jScrollPane25;
	public static javax.swing.JScrollPane jScrollPane26;
	public static javax.swing.JScrollPane jScrollPane27;
	public static javax.swing.JScrollPane jScrollPane28;
	public static javax.swing.JScrollPane jScrollPane29;
	public static javax.swing.JScrollPane jScrollPane3;
	public static javax.swing.JScrollPane jScrollPane30;
	public static javax.swing.JScrollPane jScrollPane31;
	public static javax.swing.JScrollPane jScrollPane32;
	public static javax.swing.JScrollPane jScrollPane4;
	public static javax.swing.JScrollPane jScrollPane5;
	public static javax.swing.JScrollPane jScrollPane6;
	public static javax.swing.JScrollPane jScrollPane7;
	public static javax.swing.JScrollPane jScrollPane8;
	public static javax.swing.JScrollPane jScrollPane9;
	public static javax.swing.JSeparator jSeparator1;
	public static javax.swing.JSeparator jSeparator2;
	public static javax.swing.JSeparator jSeparator3;
	public static javax.swing.JSeparator jSeparator4;
	public static javax.swing.JTable jTable1;
	public static javax.swing.JTextArea jTextArea1;
	public static javax.swing.JTextArea jTextArea2;
	public static javax.swing.JTextArea jTextArea3;
	public static javax.swing.JTextArea jTextArea4;
	public static javax.swing.JTextArea jTextArea5;
	public static javax.swing.JTextArea jTextArea6;
	public static javax.swing.JTextArea jTextArea7;
	public static javax.swing.JTextArea jTextArea8;
	public static javax.swing.JTextArea jTextArea9;
	public static javax.swing.JTextField jTextField1;
	public static javax.swing.JTextField jTextField10;
	public static javax.swing.JTextField jTextField18;
	public static javax.swing.JTextField jTextField19;
	public static javax.swing.JTextField jTextField20;
	public static javax.swing.JTextField jTextField21;
	public static javax.swing.JTextField jTextField22;
	public static javax.swing.JTextField jTextField23;
	public static javax.swing.JTextField jTextField33;
	public static javax.swing.JTextField jTextField34;
	public static javax.swing.JTextField jTextField36;
	public static javax.swing.JTextField jTextField37;
	public static javax.swing.JTextField jTextField6;
	public static javax.swing.JTextField jTextField9;
	public static javax.swing.JTextField jTextFieldColumn;
	public static javax.swing.JTextField jTextFieldConstraintValue;
	public static javax.swing.JTextField jTextFieldTable;
	public static javax.swing.JTextPane jTextPane1;
	public static javax.swing.JTextPane jTextPane10;
	public static javax.swing.JTextPane jTextPane2;
	public static javax.swing.JTextPane jTextPane3;
	public static javax.swing.JTextPane jTextPane4;
	public static javax.swing.JTextPane jTextPane5;
	public static javax.swing.JTextPane jTextPane6;
	public static javax.swing.JTextPane jTextPane7;
	public static javax.swing.JTextPane jTextPane8;
	public static javax.swing.JTextPane jTextPane9;
	public static javax.swing.JToggleButton jToggleButton1;
	public static javax.swing.JToggleButton jToggleButton10;
	public static javax.swing.JToggleButton jToggleButton11;
	public static javax.swing.JToggleButton jToggleButton12;
	public static javax.swing.JToggleButton jToggleButton2;
	public static javax.swing.JToggleButton jToggleButton3;
	public static javax.swing.JToggleButton jToggleButton4;
	public static javax.swing.JToggleButton jToggleButton5;
	public static javax.swing.JToggleButton jToggleButton6;
	public static javax.swing.JToggleButton jToggleButton7;
	public static javax.swing.JToggleButton jToggleButton8;
	public static javax.swing.JToggleButton jToggleButton9;
	public static java.awt.Label label1;
	public static javax.swing.JPanel lesGeverPanel;
	public static javax.swing.JLabel logo;
	public static javax.swing.JDialog nietGevondenVenster;
	public static javax.swing.JPanel planningPanel;
	public static javax.swing.JToggleButton projectenButton;
	public static javax.swing.JPanel projectenPanel;
	public static javax.swing.JPanel puntenPanel;
	public static javax.swing.JPanel smartfolderPanel;
	public static javax.swing.JToggleButton smartfoldersButton;
	public static javax.swing.JToggleButton startButton;
	public static javax.swing.JPanel startPanel;
	public static javax.swing.JFrame taskVenster;
	public static javax.swing.JPanel vakInformatiePanel;
	public static javax.swing.JFrame vakVenster;
	public static javax.swing.JToggleButton vakkenButton;
	public static javax.swing.JPanel vakkenPanel;
	public static javax.swing.JDialog verwijderVenster;
	// End of variables declaration//GEN-END:variables
	private Vector<objects.Teacher> teacherVector;
	DefaultListModel initListModel = new DefaultListModel();
	public Vector<Object> objectVector = new Vector<Object>();
	
	
	private void enableEntities(boolean enable) {
		if (enable) {
			jButton33.setEnabled(true);
			jButton34.setEnabled(true);
			jButton35.setEnabled(true);
			jButton36.setEnabled(true);
			jButton37.setEnabled(true);
			jButton38.setEnabled(true);
			jButton39.setEnabled(true);
			jButton40.setEnabled(true);
			jButton41.setEnabled(true);
		} else {
			jButton33.setEnabled(false);
			jButton34.setEnabled(false);
			jButton35.setEnabled(false);
			jButton36.setEnabled(false);
			jButton37.setEnabled(false);
			jButton38.setEnabled(false);
			jButton39.setEnabled(false);
			jButton40.setEnabled(false);
			jButton41.setEnabled(false);
		}
	}


	private Vector<Object> exportAll() throws Exception {
		Vector<Object> v = new Vector<Object>();
		Vector<objects.Contact> v1 = db.contact.getAllContacts();
		Vector<objects.File> v2 = db.file.getAllFiles();
		Vector<objects.Event> v3 = db.event.getAllEvents(true);
		Vector<objects.Lesson> v4 = db.lesson.getAllLessons();
		Vector<objects.Exam> v5 = db.exam.getAllExams();
		Vector<objects.Project> v6 = db.proj.getAllProjects();
		Vector<objects.Student> v7 = db.stud.getAllStudents();
		Vector<objects.Teacher> v8 = db.teach.getAllTeachers();
		Vector<objects.Task> v9 = db.task.getAllTasks();
		Vector<objects.Course> v10 = db.course.getAllCourses();
		for (int i = 0; i < v1.size(); i++) {
			v.add(v1.elementAt(i));
		}
		for (int i = 0; i < v2.size(); i++) {
			v.add(v2.elementAt(i));
		}
		for (int i = 0; i < v3.size(); i++) {
			v.add(v3.elementAt(i));
		}
		for (int i = 0; i < v4.size(); i++) {
			v.add(v4.elementAt(i));
		}
		for (int i = 0; i < v5.size(); i++) {
			v.add(v5.elementAt(i));
		}
		for (int i = 0; i < v6.size(); i++) {
			v.add(v6.elementAt(i));
		}
		for (int i = 0; i < v7.size(); i++) {
			v.add(v7.elementAt(i));
		}
		for (int i = 0; i < v8.size(); i++) {
			v.add(v8.elementAt(i));
		}
		for (int i = 0; i < v9.size(); i++) {
			v.add(v9.elementAt(i));
		}
		for (int i = 0; i < v10.size(); i++) {
			v.add(v10.elementAt(i));
		}
		return v;
	}

	private void export() throws Exception {
		Vector<Object> v = new Vector<Object>();
		System.out.println("nnnnnnnnnnnn");
		jFileChooser3.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
		jFileChooser3.showSaveDialog(exportVenster);
		File f = jFileChooser3.getSelectedFile();
		if (!f.exists()) {
			String path = f.getAbsolutePath();
			
			if (jToggleButton8.isSelected()) {
				v = exportAll();
				System.out.println("ggggggg");
				Export.exportZip(path, v);
				System.out.println("pppppppp");
			} else {
				if (jToggleButton1.isSelected()) {
					Vector<objects.Course> temp = db.course.getAllCourses();
					for (int i = 0; i < temp.size(); i++) {
						v.add(temp.elementAt(i));
					}
				}
				if (jToggleButton3.isSelected()) {
					Vector<objects.Contact> temp = db.contact.getAllContacts();
					for (int i = 0; i < temp.size(); i++) {
						v.add(temp.elementAt(i));
					}
				} 
				if (jToggleButton7.isSelected()) {
					Vector<objects.Event> temp = db.event.getAllEvents(false);
					for (int i = 0; i < temp.size(); i++) {
						v.add(temp.elementAt(i));
					}
				} 
				if (jToggleButton6.isSelected()) {
					Vector<objects.Task> temp = db.task.getAllTasks();
					for (int i = 0; i < temp.size(); i++) {
						v.add(temp.elementAt(i));
					}
				}
				if (jToggleButton12.isSelected()) {
					Vector<objects.File> temp = db.file.getAllFiles();
					for (int i = 0; i < temp.size(); i++) {
						v.add(temp.elementAt(i));
					}
				} 
				if (jToggleButton5.isSelected()) {
					Vector<objects.Teacher> temp = db.teach.getAllTeachers();
					for (int i = 0; i < temp.size(); i++) {
						v.add(temp.elementAt(i));
					}
				} 
				if (jToggleButton9.isSelected()) {
					Vector<objects.Student> temp = db.stud.getAllStudents();
					for (int i = 0; i < temp.size(); i++) {
						v.add(temp.elementAt(i));
					}
				} 
				if (jToggleButton10.isSelected()) {
					Vector<objects.Exam> temp = db.exam.getAllExams();
					for (int i = 0; i < temp.size(); i++) {
						v.add(temp.elementAt(i));
					}
				} 
				if (jToggleButton4.isSelected()) {
					Vector<objects.Project> temp = db.proj.getAllProjects();
					for (int i = 0; i < temp.size(); i++) {
						v.add(temp.elementAt(i));
					}
				}
				if (jToggleButton2.isSelected()) {
					Vector<objects.Lesson> temp = db.lesson.getAllLessons();
					for (int i = 0; i < temp.size(); i++) {
						v.add(temp.elementAt(i));
					}
				}
				if (jToggleButton1.isSelected()) {
					Vector<objects.Event> temp = db.event.getAllDeadlines();
					for (int i = 0; i < temp.size(); i++) {
						v.add(temp.elementAt(i));
					}
				}
				for (int i = 0; i < objectVector.size(); i++) {
					if (!inExportList(objectVector.elementAt(i), v)) {
						v.add(objectVector.elementAt(i));
					}
				}
				Export.exportZip(path, v);
			}
		}
		
	}
	
	private boolean inExportList(Object o, Vector <Object> v) {
		for (int i = 0; i < v.size(); i++) {
			if (o.equals(v.elementAt(i))) {
				return true;
			}
		}
		return false;

	}
	
	private void jToggleButton8StateChanged(javax.swing.event.ChangeEvent evt) {

		if (jToggleButton8.isSelected()) {
			jToggleButton1.setEnabled(false);
			jToggleButton2.setEnabled(false);
			jToggleButton3.setEnabled(false);
			jToggleButton4.setEnabled(false);
			jToggleButton5.setEnabled(false);
			jToggleButton6.setEnabled(false);
			jToggleButton7.setEnabled(false);
			jToggleButton9.setEnabled(false);
			jToggleButton10.setEnabled(false);
			jToggleButton11.setEnabled(false);
			jToggleButton12.setEnabled(false);
			enableEntities(false);
		} else {
			jToggleButton1.setEnabled(true);
			jToggleButton2.setEnabled(true);
			jToggleButton3.setEnabled(true);
			jToggleButton4.setEnabled(true);
			jToggleButton5.setEnabled(true);
			jToggleButton6.setEnabled(true);
			jToggleButton7.setEnabled(true);
			jToggleButton9.setEnabled(true);
			jToggleButton10.setEnabled(true);
			jToggleButton11.setEnabled(true);
			jToggleButton12.setEnabled(true);
			enableEntities(true);
		}
	}

	private void enableExportAllBtn() {
		boolean enable = true;
		if (jToggleButton1.isSelected()) {
			enable = false;
		} else if (jToggleButton2.isSelected()) {
			enable = false;
		} else if (jToggleButton3.isSelected()) {
			enable = false;
		} else if (jToggleButton4.isSelected()) {
			enable = false;
		} else if (jToggleButton5.isSelected()) {
			enable = false;
		} else if (jToggleButton6.isSelected()) {
			enable = false;
		} else if (jToggleButton7.isSelected()) {
			enable = false;
		} else if (jToggleButton8.isSelected()) {
			enable = false;
		} else if (jToggleButton9.isSelected()) {
			enable = false;
		} else if (jToggleButton10.isSelected()) {
			enable = false;
		} else if (jToggleButton11.isSelected()) {
			enable = false;
		} else if (jToggleButton12.isSelected()) {
			enable = false;
		}
		if ((jToggleButton8.isSelected()) || enable) {
			jToggleButton8.setEnabled(true);
		} else {
			jToggleButton8.setEnabled(false);
		}

	}

	private void jToggleButton1StateChanged(javax.swing.event.ChangeEvent evt) {
		if (jToggleButton1.isSelected()) {
			jButton33.setEnabled(false);
		} else {
			jButton33.setEnabled(true);
		}
		enableExportAllBtn();
	}

	private void jToggleButton2StateChanged(javax.swing.event.ChangeEvent evt) {
		if (jToggleButton2.isSelected()) {
			jButton41.setEnabled(false);
		} else {
			jButton41.setEnabled(true);
		}
		enableExportAllBtn();
	}

	private void jToggleButton3StateChanged(javax.swing.event.ChangeEvent evt) {
		if (jToggleButton3.isSelected()) {
			jButton34.setEnabled(false);
		} else {
			jButton34.setEnabled(true);
		}
		enableExportAllBtn();
	}

	private void jToggleButton4StateChanged(javax.swing.event.ChangeEvent evt) {
		if (jToggleButton4.isSelected()) {
			jButton40.setEnabled(false);
		} else {
			jButton40.setEnabled(true);
		}
		enableExportAllBtn();
	}

	private void jToggleButton5StateChanged(javax.swing.event.ChangeEvent evt) {
		if (jToggleButton5.isSelected()) {
			jButton37.setEnabled(false);
		} else {
			jButton37.setEnabled(true);
		}
		enableExportAllBtn();
	}

	private void jToggleButton6StateChanged(javax.swing.event.ChangeEvent evt) {
		if (jToggleButton6.isSelected()) {
			jButton36.setEnabled(false);
		} else {
			jButton36.setEnabled(true);
		}
		enableExportAllBtn();
	}

	private void jToggleButton7StateChanged(javax.swing.event.ChangeEvent evt) {
		if (jToggleButton7.isSelected()) {
			jButton35.setEnabled(false);
		} else {
			jButton35.setEnabled(true);
		}
		enableExportAllBtn();
	}

	private void jToggleButton9StateChanged(javax.swing.event.ChangeEvent evt) {
		if (jToggleButton9.isSelected()) {
			jButton38.setEnabled(false);
		} else {
			jButton38.setEnabled(true);
		}
		enableExportAllBtn();
	}

	private void jToggleButton10StateChanged(javax.swing.event.ChangeEvent evt) {
		if (jToggleButton10.isSelected()) {
			jButton39.setEnabled(false);
		} else {
			jButton39.setEnabled(true);
		}
		enableExportAllBtn();
	}

	private void jToggleButton11StateChanged(javax.swing.event.ChangeEvent evt) {
		if (jToggleButton11.isSelected()) {
			jButton35.setEnabled(false);
		} else {
			jButton35.setEnabled(true);
		}
		enableExportAllBtn();
	}

}

